Seeking explanation of question

What does the question mean by, " test the output with console.log " from the question below

For now, just write each function and test the output with console.log .

  1. Write a function called add7 that takes one number and returns that number + 7.

Does it mean like the code I’ve done below?

  <script>
function add7(num) {
  console.log(num+7);
}
  </script>

@ayanda yes, I’m pretty sure that’s what it means.

Alright. So then i’ll only be able to see the results in the console of the dev tools.

exactly :slight_smile:

1 Like