Here is a snippet of JavaScript code from a tutorial I was working with. I don’t understand why it doesn’t end with a final else clause; I thought that was a ru
else
I thought it was always supposed to end with an "else"?
The else block is optional. You can have if without else.
if