A
A
Artyom Tsymbalyuk2018-02-10 20:26:02
JavaScript
Artyom Tsymbalyuk, 2018-02-10 20:26:02

How to display different quotes using JS?

Hello.
Such a question, how to use JavaScript to display in 7 different quotes? So that every time the page is reloaded, a random quote from 7 existing ones will appear

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
riot26, 2018-02-10
@artlivee

https://jsfiddle.net/3kwo54s6/

R
RidgeA, 2018-02-10
@RidgeA

add quotes to an array and pull a random element of the array when the page loads

O
Oleg, 2018-02-10
@politon

https://jsfiddle.net/Politonius/3nuuc920/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question