Lesson 39: if else statement in JavaScript

if-else statements are logical statements which help us run code only when certain conditions are met. Lets see how and when to use them.