What am i doing wrong? lesson 7 Intro to Functions


#1

Hi,
so i am stuck on Introduction to Functions lesson 7:

Link:

it tells me to:
01.On line 7, after the equals sign, call the function timesTwo with any parameter you want
02.Line 8 prints out new number. Notice how the value we return from timestwo() is automatically assigned to newNumber.
HINT:
to call the function we just use the name of the function. We then put in a value for the number parameter eg. timesTwo(8);

I hope you can help me. Look at the link for my code and more info on the lesson. Thank You!! :grin:


#2

this line:

newNumber(16)

it causes the error. It is a function call to a non existing function. I suggest you remove it


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.