DEV Community

loading...

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

Collapse
kenorb profile image
Rafal

Please re-read: w3schools.com/js/js_if_else.asp

Use else if to specify a new condition to test, if the first condition is false.