+ 3
Hi there..
var is something that allows you to create a variable for example:
var name = "Shahid"
This makes a variable called name which has the value Shahil.
For more information read this:
https://www.sololearn.com/learn/JavaScript/1128/
If else statements are described here:
If : https://www.sololearn.com/learn/JavaScript/1136/
Else : https://www.sololearn.com/learn/JavaScript/1137/



