Saturday, May 25, 2013

Strange javascript

alerter = function(x) {
  alert(x);
}
(function() {
  alerter("Test")
})()
The problem is, "Test" will never be printed. What's wrong?

No comments:

Post a Comment