DEV Community

Discussion on: There's no "else if" in JS

Collapse
 
val_baca profile image
Valentin Baca

This not new or unique to JS. It's how else-if has been since C. It's a testament to the simplicity of a minimalist language definition:

Where acceptable statements are:

if ( expression ) statement
if ( expression ) statement else statement
Collapse
 
genta profile image
Fabio Russo

Ok, but still, lots of people do It without knowing the why.
That's the point.