0
Javascript Wait Var
This code does not work: var wait = 3000 sleep(wait); document.write("it has been 3 seconds")
4 Respostas
+ 12
var wait = 3000
setTimeout(function(){
document.write("it has been 3 seconds")},wait);
+ 4
var wait = false
if (wait = false) {
wait = true;
setInterval(function(){
document.write("it has been 3 seconds"); wait = false;},3000); }
+ 2
setTimeout(function(){
document.write('it has been 3 seconds');
}, 3000);
0
None of these work