Yeah, they are both pretty awful… Each in its own different way.
They both have curly brackets, so at least in that way they are better than Python…
I sometimes use JavaScript. Mostly node.js as a terminal calculator. You know, when you have to add up a bunch of numbers, or generate a table of sines for your Bash script… it has its uses, I guess…