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
.
- 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>