assignment 2 is confusing

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);
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 (4)

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;

``const difference = num1 - num2;``