Skip to content

Instantly share code, notes, and snippets.

@yvan-sraka
Created October 26, 2016 13:54
Show Gist options
  • Save yvan-sraka/fa01020b0141f7e8238089edf948e0f9 to your computer and use it in GitHub Desktop.
Save yvan-sraka/fa01020b0141f7e8238089edf948e0f9 to your computer and use it in GitHub Desktop.
// PROTOTYPE //
// setTimeout(Function, Number);
///////////////
// Example
// 1.
setTimeout(
// first parameter
// (which is an anonymous function without parameter)
function () { alert("Bouuuuh"); },
// second parameter
3000
);
// MATHS //
// g() : is a Function
// f(g, x) : with x is a Number
///////////
// 2.
function test() {
alert("Bouuuuh");
};
setTimeout(test, 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment