I HAVE TRIED EVERYTHING AND I CANNOT FIGURE IT OUT…HELP!!
function exerciseTwo(num1, num2){
// In this exercise, you will be given two variables, they will be called: num1 and num2
// On the next line create a variable called 'product' and using math operators return num1 multiplied by num2
var product;
math.product(num1,num2);
// Please write your answer in the line above.
return product;
}
function exerciseThree(str){
// In this exercise, you will be given a variable, it will be called: str
// On the next line create a variable called ‘length’ and using the length property assign the new variable to the length of str
var length;
length.length;
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.
See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.