04-04-2023, 07:12 AM
// Check if a variable is an array
let colors = ['red', 'green', 'blue'];
let isArray = Array.isArray(colors);
document.write(isArray);
let colors = ['red', 'green', 'blue'];
let isArray = Array.isArray(colors);
document.write(isArray);
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