Learn Basic Algorithmic Thinking by Building a Number Sorter - Step 14

I have typed in:

const bubbleSort = (array) => {
  for (let i = 0; i < array.length; i++) {

  };
}

and get back:

Sorry, your code does not pass. Don't give up.

Your for loop should be empty.

I kept trying and suddenly it worked. Not sure what’s going on but I thought I would let you know.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0

Challenge Information:

Learn Basic Algorithmic Thinking by Building a Number Sorter - Step 14

1 Like

Turns out - it doesn’t like the ;!!

3 Likes

Agreed, it’s the ; at the end of the loop statement. Removing it got it to work for me as well. Thanks!