What am i doing wrong? lesson 7 Intro to Functions


so i am stuck on Introduction to Functions lesson 7:


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


this line:


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


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