JavaScript question: what’s the printed value? February 27, 2010javascriptjavascript, questionStoimen var a = function() { alert(arguments[0]) } (1,2,3);var a = function() { alert(arguments[0]) } (1,2,3); What’s the alerted value and how that works? CodeProjectRelated posts: What make JavaScript closures work? JavaScript Comparision Snippet javascript get locale month with full name JavaScript Snippets: IF Statements Optimization Part 2 JavaScript array.pop() – Get The Last Item
By the way, what’s the value of the variable a?
should be “1” 🙂
1