Question: Write a statement that assigns finalResult with the sum of number1 and number2. Ex: If number1 is 6 and number2 is 2, finalResult is 8.

Write a statement that assigns finalResult with the sum of number1 and number2. Ex: If number1 is 6 and number2 is 2, finalResult is 8.

var number1 = 6; // Code tested with values: 6 and 4 var number2 = 2; // Code tested with values: 2 and -2

var finalResult = 0;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!