Introduction to conditional statements

JavaScript conditionals enable you to write dynamic and interactive programs that can respond to user input and other changing variables. Let's have a look at how they work.