Skip to content

Instantly share code, notes, and snippets.

@yschen25
Created March 21, 2022 23:25
const createArray = (n) => {
const arr = [];
for (let i = 0; i < n; i++) {
arr.push(i);
}
return arr;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment