If Statements

Lesson 16
Author : Afrixi
Last Updated : October, 2017

Javascript - Program the Web
This course covers the basics of programming in Javascript. Work your way through the videos/articles and I'll teach you everything you need to know to make your website more responsive!
  <li>Is a false Boolean expression</li>
  <li>Is a true Boolean expression</li>

if(isStudent && isSmart){ document.write("You are a student"); } else if(isStudent && !isSmart){ document.write("You are not a smart student"); } else { document.write("You are not a student and not smart"); } document.write("<br>");

// >, <, >=, <=, !=, == if(1 > 3){ document.write("number comparison was true"); } document.write("<br>");

if("dog" != "dog"){ document.write("string comparison was true"); }