How to display 5 div sequentially with js

div1 {display: none}
div2 {display: none}
div3 {display: none}
div4 {display: none}
div5 {display: none}

setTimeout (function) {
var obj=document.getElementById ("div1");
obj.style.display= "inline";
}, 2000)

how to display
with settimeout effect

according to the div order of 1, 2, 3, 4, 5.

Feb.28,2021

let i = 1
let timer
function step () {
    timer = setTimeout(show, 2000)
}
function show () {
    var obj=document.getElementById("div"+ iPP);
    obj.style.display="inline";
    if (i === 6) {
        clearTimeout(timer)
    } else {
        step()
    }
}
step()
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30d20-2aa8b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30d20-2aa8b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?