Preventing callbacks from accidentally being called twice
Asynchronous calls like this are extremely common in JavaScript: fetchFile("example.js", function(fileContents){ console.log(fileContents) }) In order to avoid freezing the user interface while »