04-04-2023, 07:48 AM
Code:
const arr = [3, 5, 7];
arr.foo = "hello";
for(const i in arr)
{
document.write(i + "<br>");
}
for(const i of arr)
{
document.write(i + "<br>");
}
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos