Cheraq.com

I innovate, then I am!

private-property

Monday, November 28, 2011
by Mohammad J.
0 comments

Common Javascript mistakes: Variable Scope

If you are a person that JavaScript(JS) is not your first programming language, and you have a background in C, C++, Java, C#, Python or other well structured programming languages, then you might caught off-guard with some JS concepts. We usually don’t like to start learning something from zero, so we usually try to guess how things work based on what we already learned in other programming languages. But some concepts in JS are totally different from other languages, and the one that recently I faced is: Variable Scope. Continue reading