Random Quote Machine: cannot display my quotes, please help

Hello everyone,

I am doing the “Random Quote Machine” challenge and got stuck. Here is my codepen for this project:

I try to do the “random quote displaying” part, as you can see I’ve already create a function to do so… But it won’t work and I don’t know what am I doing wrong ^^’… Please help if you can, thank you !

There are a couple of things causing a problem.

You have Math.Random when you need Math.random (no capital r)


When you ref an id you don’t need to use the # symbol:

document.getElementById('quotedisplayer').innerHTML = quotes[randomNumber];

Hope this helps :slight_smile:

I fixed it like you said and it works just fine, thank you :slight_smile: