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

Sandeep Krishnan
Sandeep Krishnan
9,730 Points

Complete the code below to call the function and pass the value 12 to it: function getRandom( upper ) { return Mat

Complete the code below to call the function and pass the value 12 to it: function getRandom( upper ) { return Math.floor(Math.random() * upper) + 1; }

;

1 Answer

In order to call a function you would follow syntax such as someFunction(ParameterYouAreProviding). All that this challenge is asking you to do is to call the function getRandom with a parameter of 12.