Top 10 pitfalls in JavaScript

Here's a summary of pitfalls that I have met in learning JavaScript.  10. Accessing object's properties Assessing object's properties has two options, dot notation and bracket notation. However, if the property name is a variable, dot notation method will look at the string value rather than variable value. For property names like "accept-language", we also … Continue reading Top 10 pitfalls in JavaScript