2 ms·
These days, I think Javascript is a superior beginner language: - Nothing to install, you most likely already have a full blown development environment install
by laureny 13y ago
These days, I think Javascript is a superior beginner language:
- Nothing to install, you most likely already have a full blown development environment installed (e.g. Chrome or Firefox).
- The language is straightforward, functions everywhere, easy control structures, very little to be distracted by.
- The reward loop is very high for beginners: load a page, tell them to write a Javascript one-liner and see their face light up when the HTML page gets instantly modified
- MichaelGG 13y agoOdd scoping, equality, type coercion - those seem rather significant distractions. Having to explain that == doesn't really work and === is probably what they want seems beyond bizarre. And "function" as a way to introduce an anonymous function is just verbosity for verbosity's sake. Unfortunately, the two other points you mention probably outweigh the actual language design.