DEV Community

Discussion on: Which mainstream programming language has the ugliest syntax?

Collapse
 
aswathm78 profile image
Aswath KNM

JS has the most ugliest syntax . No offence great language . But do we still need semi colons, braces, old style loop declaration etc.. ??

Collapse
 
hrmny profile image
Leah

Well, js is an old language and is c-like, so blame that ig

But you can leave out semicolons in most places and use functional loops

Collapse
 
vintprox profile image
Rodion Borisov

Bruh, stop using obviously outdated tutorials and look around: we have ECMAScript 2016+, and it's better JavaScript you'll ever see (TypeScript takes my cake though 😉). Semicolons never were mandatory, loop declaration is less verbose.

Collapse
 
robbydmz profile image
Robby

do we still need semi colons, braces, old style loop declaration

No we don't, semi colons are optional and there are better loop declarations in modern ecmascript.