for each if statement javascript code example Example: javascript if and statement let a = 1; let b = 2; if(a == 1 && b ==2){ // Code here }