About 24,900,000 results
Open links in new tab
  1. How do you use the ? : (conditional) operator in JavaScript?

    Jun 7, 2011 · 27 It's a little hard to google when all you have are symbols ;) The terms to use are "JavaScript conditional operator". If you see any more funny symbols in JavaScript, you should try …

  2. How to use OR condition in a JavaScript IF statement?

    Mar 2, 2010 · How to use OR condition in a JavaScript IF statement? Asked 15 years, 9 months ago Modified 2 years, 10 months ago Viewed 879k times

  3. JavaScript: difference between a statement and an expression?

    Sep 16, 2014 · Correct me if am wrong, but isn't this considered an "expression statement"? I understand that a statement can also be evaluated to produce a value as you demonstrated above. …

  4. javascript - Do we need semicolon at the end? - Stack Overflow

    The concept is known as JavaScript Semicolon Insertion or " Automatic Semicolon Insertion ". This blog post: JavaScript Semicolon Insertion: Everything you need to know (archived from the original) …

  5. JavaScript single line 'if' statement - best syntax, this alternative?

    Jan 14, 2012 · JavaScript single line 'if' statement - best syntax, this alternative? [closed] Asked 13 years, 11 months ago Modified 1 year, 9 months ago Viewed 816k times

  6. if statement - "elseif" syntax in JavaScript - Stack Overflow

    Oct 23, 2010 · In JavaScript's if-then-else there is technically no elseif branch. But it works if you write it this way:

  7. javascript multiple OR conditions in IF statement

    javascript multiple OR conditions in IF statement Asked 13 years, 10 months ago Modified 7 years, 1 month ago Viewed 150k times

  8. javascript - "Uncaught SyntaxError: Cannot use import statement …

    Oct 3, 2019 · This means that you're using the native source code in an unaltered/unbundled state, leading to the following error: Uncaught SyntaxError: Cannot use import statement outside a module.

  9. Javascript How to define multiple variables on a single line?

    177 If I want to condense code, what's the proper JavaScript "strict" way to define multiple javascript variables on a single line?

  10. javascript - Shorthand for if-else statement - Stack Overflow

    Aug 20, 2014 · Shorthand for if-else statement Asked 12 years, 3 months ago Modified 2 years, 9 months ago Viewed 298k times