← Back to Question List
JavaScript Quiz #2
Adding Two Numbers
You 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