JavaScript is not perfect, nor is any language made by human intervention.
Fragile Glass

Listen, all I’m doing is giving everyone the benefit of my experience in IT. People are free to ignore my warnings and advice, which I offer as a purely philanthropic act, a civic duty. I have no skin in the game. I’ve been in this business a long, long, long time, and I believe I have something of value to offer. Ultimately, though, it’s only one man’s educated opinion. Take it for what it’s worth.

But it behooves me to point out that many professionals agree with my opinion regarding software engineering. I am not a lone voice screaming in the void. So it’s not irresponsible for me to point out that PHP really is a horrible language. I urge you to read “The Three Worst Programming Languages.”