Not only is it easier to get neat results in JS but it has a very low barrier to entry. Everyone uses the internet and is just a shortcut away from executing javascript code in console of their favorite browser on a live page. That and the language itself is very "loose" when it comes to rules and strictness. It just gets the work done. Nothing like cpp for example. Now it can be both good thing because the results are easy and instantaneous and a bad thing because this gives a false notion to newcomers of how programing is done (but then again js is pretty ubiquitous on any modern computer, so it is as "real world" as it gets.)