SyntaxFix
Write A Post
Hire A Developer
Questions
In JavaScript functions are objects.
document.getElementById('foo').onclick = function(){ prompt('Hello world'); }