โ Back to Printing
Question 2
Variable Addition
Variable Addition
Create two variables (num1 = 5 and num2 = 10), calculate their sum, and use console.log() to display: The sum is: 15 Steps: 1. Create two variables: num1 = 5 and num2 = 10 2. Calculate their sum 3. Use console.log() to print "The sum is: " followed by the result
Expected Output:
The sum is: 15
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (clog, fn, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.