Back to Multiple Choice Quiz
Adding Two Numbers
JavaScript quiz · Question 2You have two variables, num1 = 5 and num2 = 10. Which code correctly calculates the sum and logs "The sum is: 15" to the console?
Code
1let num1 = 5;2let num2 = 10;3// TODO: compute sum and print