CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

Adding Two Numbers

JavaScript quiz · Question 2
easyPrinting

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