Reputation: 1
I want to change the value of something variable in the all()`
let something = true;
function all(){
alert("something");
}
Now I want to insert something variable in all setInterval()
function and in all()
How should I do this all
setInterval(all, 1000);
Upvotes: 0
Views: 88
Reputation: 6268
function all(message)
{
alert(message);
}
setInterval(all, 1000, "hello world");
Upvotes: 3