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
For the same reason as why you can have just a single if:
if( /*condition*/ ) { //some code } //other stuff