What am I doing wrong? Here is my code:

for(x = 0; x < 10; x++) {

var i = true

while(i = true) {
i = false

var j = false
do {
} while (j);
j = true;


you didn't put a semi colon to the end of the for loop


@ravindudesilva No semicolons do not require semicolons after them.

@kirstenarlert The problem is probably this condition:

while(i = true) {

= is the assignement operator so this means make i be true no matter what it previously was and as assignments have the value you assign (here: true). This means effectively while(true) which is a classical infinite loop.