JSFiddle - React, Tailwind, and code Playground

by HollyIT

JavaScript

var a=0, b=0;

setInterval(function(){
    // This is an asynchronous call
    a=a+1;
    $('body').append('<li>a=' + a + '</l1>');
},1000);

setInterval(testB, 1000);
// Error!
if (undefinedvariable) {
    
}

alert('test');

function testB() {
   b=b+1;
   $('body').append('<li>b=' + b + '</l1>');
}