JSFiddle - React, Tailwind, and code Playground

by luka kupunia

HTML

div#

JavaScript

var a = 1;
var b = 2;

setTimeout(function(){
	a = 2;
  b = 5;
},2500)

function sum(c,d){
	setInterval(function(){
  	/* console.log(c + d) */
  },1000)
}

sum(a,b)

setTimeout(function(){
	/* console.log(a,b) */
},3000)