My first contact with js was trying to make a button change its color on mouseover. There was no css back then. I bought a book and was so put off from the syntax that i never looked back to js from that day on. Never regretted my decision
There are a ton of reasons to object to JS but the syntax? It isn’t even all that unique.
I had a similar path and never came back to JS until work forced me to learn. To me, it has only gotten more readable.
The syntax? I got 99 problems with js, but syntax ain't one of them. It's just C-style syntax, no?
I kind of like real JavaScript with prototype inheritance. It's not how we use it in browsers though.
And now with typescript and running it in the server... I'd rather just use Java.
Reminds me of one of Microsoft's first Dynamic HTML demos:
There were two buttons, one labeled "Our Web Site", the other labeled "Our Competitor's Web Site".
When you moved the mouse over the "Our Competitor's Web Site" button, it would quickly slide out from under your cursor before you could click it!
Then when you stopped moving your mouse, the "Our Web Site" button would slyly slide right underneath your mouse!
Dammit Microsoft!!! ;)
I find these sorts of comments quite strange. So one tried something over 30 years ago and was put off by syntax of all things and then decided they'd never look at it again? So weird to base opinions on 30 year old experiences that were not even in-depth experiences but cursory glances.