This is the third post in a multi-part series covering common mistakes C# developers tend to make when they first start writing JavaScript.
The first post covered the following topics:
- 1. Having Variables & Functions in Global Scope
- 2. Not Declaring Arrays & Objects Correctly
The second post covered the following topics:
- 3. Not Understanding False-y Values
- 4. Not Testing & Setting Default Values Correctly
- 5. Using the Wrong Comparison Operators
- 6. Not Using the for…in Statement Correctly
Introduction
This post continues to focus on areas where C# developers tend to make bad JavaScript decisions based on their previous training. The languages are similar enough syntactically that C# developers tend to not invest the time to learn JavaScript’s differences.
The following post points out several misunderstandings that can get you into some confusing situations.