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

Anton Kilk
Anton Kilk
Full Stack JavaScript Techdegree Student 2,820 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
170,315 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.