Answers for "create a array using :"

C
5

create array

const fill = new Array(5).fill(0)
console.log(fill) // [ 0,0,0,0,0]

let filledArray = new Array(10).fill({'hello':'goodbye'});
Posted by: Guest on February-14-2022
0

declare an array

int data[100];
Posted by: Guest on April-06-2022

Code answers related to "create a array using :"

Code answers related to "C"

Browse Popular Code Answers by Language