jeudi 22 février 2018

how to randomize a string by daily date with Javascript

help , I'm trying to create a quote generator that will randomize a quote on daily basic's.

```var date = new Date(); var quotes = ["Hello World", "Good morning", "Good Night", "i love you"]; var randomQuotes= quotes[Math.floor(Math.random() * quotes.length)];

        document.getElementById("quotes").innerHTML = randomquotes;```




Aucun commentaire:

Enregistrer un commentaire