Categories interviewCreate Array of size in Js Post author By Shiva Charan Devabhaktuni Post date May 2, 2021 const arr = Array(3).fill(5); console.log(arr); // [5, 5, 5]DemoRelated ← Uglify CSS Class names → Implement Array.prototype.map()