Sunday, November 22, 2015

javascript ()

if wanna run a function immediately we can use () to run it. the () is run in Javascript.

function test(){
  (function (){
    //run me first,
  })();
// this one used 2 () to run the function first.

   for()....
}

No comments: