JavaScript JavaScript Basics Creating Reusable Code with Functions Review: Giving Information to Functions

Steve Fan
Steve Fan
8,218 Points

Quiz Question: I tried to create many different arguments but none of those is correct answer. Could anyone help plz

Quiz Question: I tried to create many different arguments but none of those is corrected answer. Could anyone explain or give me a hint please?

2 Answers

klaudiarozgonyiova
klaudiarozgonyiova
9,047 Points

I'm guessing you're stuck on the question where you have to finish the code. What you have to enter is:

getRandom(12);

You call the function by writing the function's name getRandom() and you pass the value 12 to it by entering the number in the brackets.

Steve Fan
Steve Fan
8,218 Points

Yes it is. I found the problem.

So the answer is: getRandom(12)

NOT getRandom(12);

Because there is already a ; in the answer but i didn't notice that.

Tks