Abimbola Oladele I know, that's why I didn't mention it on the first read, but since some one else pointed it out. Also match is not a switch but ... for the sake of a javascript perspective you could use it that way :D true.
anyhow good article, I don't want to sidetrack to much :)
I'm sorry, but there is an error in javascript code about
ternary operatorlet age = 17 if(age >= 18){ console.log(" You are old enough to vote"); }else{ console.log("Come back when you are 18"); } // Ternary Operator if age >= 18 ? console.log(" You are old enough to vote") : console.log("Come back when you are 18"); // here we don't need if identifier, just remove it