python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to execute Console.log and setTimeout sequentially in JavaScript
(function() {
console.log(1);
setTimeout(function(){console.log(2)}, 1000);
setTimeout(function(){console.log(3)}, 0);
console.log(4);
})();
Hello All,
When I run the above code, i...

Shariq
Votes: 0
Answers: 1
Need to wait for Google API but sleep function doesn't work
I need to load Google Maps API in my svelte project.
I'm using js-api-loader npm package.
Here's the peace of code that I use to load the Google API:
loader.js
import { Loader } from '@googlemaps/js-a...

Big_Boulard
Votes: 0
Answers: 1
MVC Core redirect to login after 5 minutes inactive
I want to redirect the user to the login page after being inactive for 5 minutes.
I'm using MVC Core 3.1

Chindara
Votes: 0
Answers: 1
I need help getting a javascript function to execute in correct order
I am having trouble grasping how to make this bit of code execute in the correct order:
window.writeData=function() {
console.log('this works.');
push(ref(db), {
First_Name: document.get...
JeremyJed
Votes: 0
Answers: 0