How does js splice to get such a result data.nav1?

how to splice js to get such a result data.nav1 data.nav2? Numbers are dynamic.

function showNav(n){
    for(let i = 0;i<data.nav+n.length;iPP){
        html += `<li><a href="-sharp">${data.nav+n[i].name}</a></li>`;
    }
}
Mar.10,2021

use data ['nav'+n] .length

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-1eaa939-1fee.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-1eaa939-1fee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?