04-04-2023, 07:12 AM
// Check if an array contains a number
const ratings = [1, 2, 3, 4, 5];
let result = ratings.includes(4);
document.write(result);
const ratings = [1, 2, 3, 4, 5];
let result = ratings.includes(4);
document.write(result);
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