OneCompiler

solve this reduce question

131

Example heading with h2 size

Example heading with h3 size

Following is sample Java Script code.

let users = [
  {age: 16},
  {age: 20},
  {age: 23},
  {age: 30}
];

// [16, 20, 23, 30]

let newArr =/* Code Here */




console.log(newArr); // [16,20,23,30]

/*
Problem Statement: 

Use proper array method such that the newArr becomes: 
 [16,20,23,30]
 
The newArr is simply an array of numbers, in this problem the ages of the users. 
*/