Linked Questions

Popular Questions

Priority of function execution in javascript

Asked by At

I don't understand why a second function call ( after a function body ) has a priority over the one inside of a body ?

function a(){
  var num = 5;
  console.log( ++num );
  setTimeout( a, 100 );
};
setTimeout(a,2000)

Related Questions