do if statements need an else in js code example
Example 1: javascript if and statement
let a = 1;
let b = 2;
if(a == 1 && b ==2){
// Code here
}
Example 2: if statement
if( name = 'george washington'):
print("You have the same name as the first president of the United States")
// python
else:
print("You do not have the same name as George Washington")