No Let

Can you write JavaScript code without using let?

Add One

This puzzle is basically the tutorial. I'll walk you through how to edit the code to make the linter pass.

In the editor below, edit the code like so:

  • let x = 5; -> const x = 5;
  • x = x + 1; -> const y = x + 1;
  • return x; -> return y;

You can also use your own solution if you want.

After you've updated the code, press "Run", check if your solution passes all the tests, and then move onto the next puzzle.


  • Waiting on logic tests...
  • Waiting on linter...
Waiting on logic tests and linter...

Loading editor...