Javascript not understanding how arrays work

This commit is contained in:
2023-07-21 18:50:46 +01:00
parent 6ad1e9aa5c
commit 840d6e2ff5

View File

@@ -67,7 +67,7 @@ async function populateScreen() {
</article>
</div>`
}
for (let i = history.length; i > 0; i-=1) {
for (let i = (history.length -1); i >= 0; i-=1) {
historyPage.innerHTML += `
<div class="full">
<article class="card">