# Introduction In this challenge, we will tackle a real interview question from a big company - generating an array. The task is to write a function that generates an array with each element ranging from 1 to `n`, where `n` is a given input. The challenge has a constraint that `0 <= n <= 10000`, and the function needs to be written in the provided `createArr.js` file.
Click the virtual machine below to start practicing