assignment 2 is confusing
StrayLove (1)

it says here
// In this exercise, you will be given two variables, they will be called: num1 and num2
// On the next line create a variable called 'difference' and using math operators return num2 subrtracted from num1
const difference = num1 - num2;
do_math(num1, num2);
// Please write your answer in the line above.
return difference;
}
i am just not getting this whole excercise. tbh the video wasnt explaining that much either. im feeling awful confused

You are viewing a single comment. View All
StrayLove (1)

original syntax for the exercise looked like the following, i have no do math stuff on the exercise anywhere. i have tried several times to find the answer but it keeps saying undefined. i even looked up how to do it. ugh.

function exampleExercise(num1, num2){
// !!! This is an example exercise, we will show you how to complete the following exercises here.
// !!! There is NO need to write any code for this exercise.
// !!! This exercise ia ALREADY complete, Use this as reference to complete the others.

// In this exercise, you will be given two variables, they will be called: num1 and num2
// On the next line create a variable called 'difference' and using math operators return num2 subrtracted from num1
const difference = num1 - num2;

// Please write your answer in the line above.
return difference;
}

vedprad1 (744)

@StrayLove : It says that you do not need to do anything. Literally, the answer is provided:

const difference = num1 - num2;

If this answers your question, please check the checkmark on the left side of this message. Thanks and Good Luck!