I want to force a JavaScript program to wait in some particular points of its execution until a variable has changed. Is there a way to do it? I have already found an extens
JavaScript is one of the worst program\scripting language ever!
"Wait" seems to be impossible in JavaScript! (Yes, like in the real life, sometimes waiting is the best option!)
I tried "while" loop and "Recursion" (a function calls itself repeatedly until ...), but JavaScript refuses to work anyway! (This is unbelievable, but anyway, see the codes below:)
while loop:
Recursion:
1234