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