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!
I'm starting a coding bootcamp
Want to learn web development in a fun and gamefied environment? Head over to and see what I'm working on!

If Statements (Cont)

Lesson 17
Author : Mike Dane
Last Updated : October, 2017


Copyvar isStudent = false;
var isSmart = false;

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");

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

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