Initialize Mapped Array

# Introduction In this lab, we will explore how to initialize and fill an array with specified values using a mapping function in JavaScript. We will be using the `Array()` constructor to create an array of the desired length and the `Array.prototype.fill()` method to fill it with null values. Additionally, we will be using the `Array.prototype.map()` method to fill the array with the desired values using the provided function.

|60 : 00

Click the virtual machine below to start practicing