JavaScript is a high-level, interpreted scripting language that conforms to the ECMAScript specification. JavaScript has curly-bracket syntax, dynamic typing, prototype-based object-orientation, and first-class functions.
To some JavaScript is a necessary evil. I think JavaScript code can be elegant and beautiful. As with any programming language, it has its traps and pitfalls. Node.js is a big game changer on the server. And TypeScript helps u to make projects more readable.
On a more personal note: I stopped using semicolons in my scripts as it improves readability of small code snippets.
Multi-statement logic inside a Knockout.js data-bind expression can trigger an “Unable to parse bindings” error. Wrapping the logic in an immediately invoked function expression provides a compact solution.
As a developer, I love solving common string problems with regular expressions. Sure, they are sometimes hard to read, but you can do so much with such a small expression! It is nice that many languages support them, although it sometimes feels like every language creates its own dialect. Let’s look at the differences between regular expression groups in .NET and JavaScript.