0

how to generate random articles in js

Hiii , i need to generate a random articles in JS but i don't know how i can do it . Please help meee :) I juste know it's with " random" ..

8th Jun 2022, 9:21 AM
Coralie
2 Answers
+ 2
What do you mean by articles? Are these articles you're pulling from a database or API?
8th Jun 2022, 9:25 AM
Justice
Justice - avatar
+ 1
u can use an array and put articles inside that array and use Math.random()
8th Jun 2022, 12:59 PM
Junior
Junior - avatar