else if in javascript code example Example: if javascript if (a > 0) { result = 'positive'; } else { result = 'NOT positive'; }