News for hackers. Stuff that matters.
Re:Ask HN: Am I one of the few JavaScript programmers who di... by timothya on Saturday April 05, 2014 @05:17PM (#7538494)
Yes, it should be one of the first things you learn when learning JavaScript. JavaScript only has function scope, meaning that you only get new scope inside of a function.
Re:Ask HN: Am I one of the few JavaScript programmers who di... by josso on Saturday April 05, 2014 @07:24PM (#7538872)
Yep, this and hoisting is something I expect any JavaScript developer to know.
Re:Ask HN: Am I one of the few JavaScript programmers who di... by sAuronas on Tuesday April 08, 2014 @05:01PM (#7555988)
And semicolon insertion.