Learn Basic String and Array Methods by Building a Music Player - Step 14

Tell us what’s happening:

it said want add return expression num1, num2 but i tried many times

Your code so far

const addTwoNumbers = (num1, num2) => {
return num1 * num2;

};console.log(addTwoNumbers(3,4))

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

const addTwoNumbers = (num1, num2) => {
  return num1 * num2;
  
};console.log(addTwoNumbers(3,4))

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Learn Basic String and Array Methods by Building a Music Player - Step 14

The challenge is to return the expression of adding num1 + num2, not the multiplication.

→ The function name is addTwoNumbers, the multiplication was in the challenge example for you.

2 Likes

Oh God i didn’t see it… Thank you :heart:

1 Like