Linked Questions
55 questions linked to/from When is JavaScript synchronous?
-2
votes
1
answer
298
views
Is javascript Sychronous or asynchronous? [duplicate]
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
Are calls synchronous in Javascript? [duplicate]
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
For loop is executed asynchronously in javascript? [duplicate]
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
Is asyncronicity introduced in javascript by Nodejs [duplicate]
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
javascript execution sequence without callbacks or promises [duplicate]
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
Was javascript Always Asynchronous [duplicate]
Does anybody know if javascript always fully asynchronous ever since it's birth? When did it begin to be fully asynchronous?
1
vote
0
answers
29
views
is $("#File_Selector_Container").html(data); synchronous? [duplicate]
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
Asynchronous vs synchronous execution. What is the difference? [closed]
What is the difference between asynchronous and synchronous execution?
698
votes
13
answers
149k
views
Is JavaScript guaranteed to be single-threaded?
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
React setState not updating state
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
How to know if a function is async?
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
How does Asynchronous Javascript Execution happen? and when not to use return statement?
// 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
Asynchronous operations in javascript [duplicate]
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
How to wait until tracking scripts have fired before redirecting the user?
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 ...
8
votes
2
answers
12k
views
Is Array.forEach asynchronous?
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(...