const array = Array.from({ length: 5 }, () => Math.random() > 0.5);
console.log(array);
Post #1499
6.75K
CHALLENGE
- 👍 8
JA JavaScript @javascript · 31K subscribers
const array = Array.from({ length: 5 }, () => Math.random() > 0.5);
console.log(array);