re: There's no "else if" in JS VIEW POST


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

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

code of conduct - report abuse