What unit of time is used in the following statement setTimeout(function(){?}, 1000); code example
Example: timeout javascript
setTimeout(function(){
//code goes here
}, 2000); //Time before execution
setTimeout(function(){
//code goes here
}, 2000); //Time before execution