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

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

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

getRandon(12);

bummer : Answer is incorrect.

Karolin Rafalski
Karolin Rafalski
11,362 Points

GetRandom

You have a typo that reads getRandon

I hope that helps!

1 Answer

Hi jitendra- Looks like you just mis-spelled getRandom