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