I make now the first steps in JavaScript. To practice, I took a game I coded in VBA and try to "translate" it in JavaScript.

But I got stuck into one issue: JavaScript is missing GOTO. All of a sudden what was so simple in VBA becomes a big obstacle in JavaScript.

The scenario is simple. I have to add two random integers (both between 0 and 10, let's say). And to move forward only if the condition x+y<11 is satisfied. If not, a new set (x,y) must be generated and tested for the condition.

In VBA, using GOTO, makes this few lines of code a piece of cake. But in JavaScript, due to the lack of GOTO, I fiddle around pointlessly to find a solution

I thank you in advance for any advice, to bring me on the right track again.