Problem 23. Create an array of numbers and take input from the user to add numbers to this array. Create an array of space of given numbers.

let arr = [5, 4, 7, 8, 9, 10, 20, 30];

let val = arr.map((value)=>{
    return value*value;
});

console.log(val);   // [25, 16, 49, 64, 81, 100, 400, 900]