Skip to content

Instantly share code, notes, and snippets.

@infovore
infovore / gist:b6c4bc71a1bffdfd9846
Last active September 1, 2015 11:47
setTimeout is probably the first place you ever used a callback.
// Let's make an alert 2s after a page loads.
// We'll need to set a timeout.
// What are the ways we can make Timeouts?
// This was the way I first learned.
function hello() {
alert("Hello!");
}