About 9,620,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. 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, 5 months ago Modified 2 years, 6 months ago Viewed 874k times

  3. javascript - Fetch API request timeout? - Stack Overflow

    Oct 26, 2017 · I have a fetch-api POST request: fetch(url, { method: 'POST', body: formData, credentials: 'include' }) I want to know what is the default timeout for this? and how can we set …

  4. Wait 5 seconds before executing next line - Stack Overflow

    This function below doesn’t work like I want it to; being a JS novice I can’t figure out why. I need it to wait 5 seconds before checking whether the newState is -1. Currently, it doesn’t wait, i...

  5. How to remove all event listeners of a DOM object in JavaScript?

    How to remove all event listeners of a DOM object in JavaScript? Asked 14 years, 8 months ago Modified 2 months ago Viewed 238k times

  6. javascript - Call async/await functions in parallel - Stack Overflow

    @Blindman67 - I think it's pretty clear what the OP is asking, using the async/await pattern will make the functions run in serial, even if they are async, so the first would completely finish …

  7. How to sort an object array by date property? - Stack Overflow

    Say I have an array of a few objects: var array = [{id: 1, date: Mar 12 2012 10:00:00 AM}, {id: 2, date: Mar 8 2012 08:00:00 AM}]; How can I sort this array by the date element in order from …

  8. How can I hash a string with SHA256? - Stack Overflow

    Jan 17, 2020 · I'm looking to get a SHA256 hash in JavaScript, on Google Chrome 79.0.3945.130 (64-bit). I've been looking around thinking there would be some sort of official library or …

  9. What is the purpose of the dollar sign in JavaScript?

    Mar 29, 2022 · Javascript does have types; and in any case, how is the dollar sign even related to that? It's just a character that happens to be a legal identifier in Javascript.

  10. javascript - How to add days to Date? - Stack Overflow

    Feb 19, 2009 · How to add days to current Date using JavaScript? Does JavaScript have a built in function like .NET's AddDay()?