Linked Questions

55 questions linked to/from When is JavaScript synchronous?
-2 votes
1 answer
298 views

I have confused with synchronous and assynchronous in javascript is javascript is a synchronous or assynchronous ,suggest your idea or any relevant website , thanks
-1 votes
2 answers
106 views

I can't find an answer to this question, sorry if it's a double post. Whenever I search for this, I get AJAX questions. So, are the first and second calls synchronous: function test() { first(); ...
-2 votes
3 answers
68 views

In my example below, why does it log 512, rather than 1? I understand javascript is synchronous, so shouldn't the logging occur long before the for loop completes? For this reason, I was expecting ...
0 votes
1 answer
82 views

I just wanted to understand concept of nodejs and javascript . My question is Nodejs framework claims that it provides asynchronous way to handle jabvascript so this asyncronous way of handling ...
0 votes
1 answer
59 views

I'm using Nodejs, and I'm confused about the asynchronous characteristics of JavaScript. If there are no callback functions or promises, is every function executed in asynchronous way? For example, ...
0 votes
0 answers
49 views

Does anybody know if javascript always fully asynchronous ever since it's birth? When did it begin to be fully asynchronous?
rbtLong's user avatar
  • 1,582
1 vote
0 answers
29 views

Is $("#File_Selector_Container").html(data); synchronous? Basically, will the DOM will have finished being updated once this completes so that I can refer to elements in the HTML that is in data ...
1359 votes
22 answers
1.1m views

What is the difference between asynchronous and synchronous execution?
698 votes
13 answers
149k views

JavaScript is known to be single-threaded in all modern browser implementations, but is that specified in any standard or is it just by tradition? Is it totally safe to assume that JavaScript is ...
218 votes
11 answers
493k views

So I have this: let total = newDealersDeckTotal.reduce(function(a, b) { return a + b; }, 0); console.log(total, 'tittal'); //outputs correct total setTimeout(() => { this.setState({ ...
166 votes
12 answers
77k views

I have to pass a function to another function, and execute it as a callback. The problem is that sometimes this function is async, like: async function() { // Some async actions } So I want to ...
37 votes
2 answers
21k views

// synchronous Javascript var result = db.get('select * from table1'); console.log('I am syncronous'); // asynchronous Javascript db.get('select * from table1', function(result){ // do something ...
7 votes
4 answers
4k views

I hear people talking about asynchronous operations in javascript. On the other hand, people say that Javascript is always synchronous sync javascript. Which is true? Is Javascript really asynchronous ...
12 votes
6 answers
7k views

I run a typical price comparison website, where the user browses products, then clicks on a link to go to the merchant's website. Before being redirected to the merchant's website, the user is ...
BenMorel's user avatar
  • 37.1k
8 votes
2 answers
12k views

According to JavaScript, Node.js: is Array.forEach asynchronous?, Array.forEach is synchronous. However, for my code below: function wait5() { return new Promise(resolve => setTimeout(...
u936293's user avatar
  • 16.5k

15 30 50 per page
1
2 3 4