Create a variable called z, assign x + y to it, and display the result in an alert box.
z
x + y
Click here to try again.
var x = 5; var y = 10; w3exercise_input_no_0 w3exercise_input_no_1 = x + y; w3exercise_input_no_2(z);
w3exercise_input_no_0
w3exercise_input_no_1
w3exercise_input_no_2
Completed 0 of 67 Exercises:
This will reset the score of ALL 67 exercises.
Are you sure you want to continue?
Share your score on facebook:
Take our JavaScript Developer Certificate to prove that you have fundamental knowledge of web development using JavaScript.