×
×
Correct!

Create a variable called z, assign x + y to it, and display the result in an alert box.

let x = 5; let y = 10; let z = x + y; alert(z);
let x = 5; let y = 10; var z = x + y; alert(z);

Not Correct

Click here to try again.

Correct!

let x = 5;
let y = 10;
  = x + y;
(z);

  
  
  




×

Reset the Score?

This will reset the score of ALL 67 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 67 JS exercises.

Share your score:



Get Certified!

Take our JavaScript Developer Certificate to prove that you have fundamental knowledge of web development using JavaScript.