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

Anton Kilk
Anton Kilk
Full Stack JavaScript Techdegree Student 11,256 Points

Why I get a bummer message?

function getRandom( upper ) {
   return Math.floor(Math.random() * upper) + 1;
getRandom (12);

1 Answer

Steven Parker
Steven Parker
201,292 Points

Even though extra space would be tolerated in actual code, normal calling syntax is to place the parentheses immediately following the function name.

The "correct" answer will have no spaces.