About 2,330,000 results
Open links in new tab
  1. Which equals operator (== vs ===) should be used in JavaScript ...

    Dec 11, 2008 · I'm using JSLint to go through JavaScript, and it's returning many suggestions to replace == (two equals signs) with === (three equals signs) when doing things like comparing …

  2. What does the !! (double exclamation mark) operator do in …

    Novice JavaScript developers need to know that the "not not" operator is using implicitly the original loose comparison method instead of the exact === or !== operators and also the …

  3. What is the correct way to check for string equality in JavaScript ...

    In all other cases, you're safe to use ==. Not only is it safe, but in many cases it simplifies your code in a way that improves readability. I still recommend Crockford's talk for developers who …

  4. How do I iterate through table rows and cells in JavaScript?

    How would I iterate through all table rows (assuming the number of rows could change each time I check) and retrieve values from each cell in each row from within JavaScript?

  5. How do I check for null values in JavaScript? - Stack Overflow

    How can I check for null values in JavaScript? I wrote the code below but it didn't work.

  6. How can I remove a specific item from an array in JavaScript?

    How do I remove a specific value from an array? Something like: array.remove(value); Constraints: I have to use core JavaScript. Frameworks are not allowed.

  7. How do I format a date in JavaScript? - Stack Overflow

    How do I format a Javascript Date object as a string? (Preferable format: 10-Aug-2010)

  8. How to reload a page using JavaScript - Stack Overflow

    Here is the explanation JavaScript window.location object can be used to get current page address (URL) to redirect the browser to another page to reload the same page window: in …

  9. javascript - How do I replace all occurrences of a string ... - Stack ...

    Note: In general, extending the built-in prototypes in JavaScript is generally not recommended. I am providing as extensions on the String prototype simply for purposes of illustration, showing …

  10. How can I convert a string to an integer in JavaScript?

    In absence of OP's clarification, this question could be interpreted in the sense of converting any string to a number, i.e. turning "dog" into a number (which of course can be done).