Javascript is absurdly complex, awkward, dishonest (in trying to appear to be OOP), and often a completely unintelligible mass of callbacks. I not only don't want beginner programmers to learn in javascript, I don't even want them to see js until they have experience in another functional language (although that ship has sailed.)
If you honestly think
if __name__ == "__main__":
is more complicated than js variable scoping rules and closures, I'm intrigued by your mind.
JS, as with all languages, has its flaws, but I found JS the most accessible language for me. It solved the problems I was interested in, and so putting up with its issues was fine for me.
If you honestly think
is more complicated than js variable scoping rules and closures, I'm intrigued by your mind.