Javascript is the worst example you could've picked. The only thing "good" about it is that it is implemented in every browser on every platform, and as such available to every programmer of every age. The language itself is actually quite bad, which is why you get so many people trying to make languages that transpile to it.