As a flexible programming language, JavaScript has many traps that might be easily ignored which could kill your program. In this article, we will be learning some key elements of JS syntax by going through 10 error-prone examples. Some of the examples come from real-world mistakes and some directly from basic JS syntax which I think would be important to share with you.