JSFiddle - React, Tailwind, and code Playground

by Ishank Dubey

JavaScript

var name = 'test';

var object = {
name, test(){
   return this.name;
}}

var testObj= {obj:12};
console.log(testObj.obj);
testObj.obj = 11;

setTimeout(function(){
  console.log(1234556);
},0)

var oldTime = new Date();
while (new Date()-oldTime<1000){
  console.log('while stack');
  console.log(document.getElementsByTagName('body'));
}