Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Javascript I have an array of names and numbers (ages). I am trying to find the highest number (age) in that array, and printing that
Javascript
I have an array of names and numbers (ages). I am trying to find the highest number (age) in that array, and printing that number along with the name associated with it.
Say the names and numbers are - Belinda 30, Kim 15, Jessica 35, Amy 56, Becky 16.
I created the array below, but I do not know how to print the information.
var array = [ {name: 'Belinda', age: 30}, {name: 'Kim', age: 15}, {name: 'Jessica', age: 35}, {name: 'Amy', age: 56}, {name: 'Becky', age: 16} ];
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started