Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions

Question

Are ideas of lesser importance subordinated? (668)

Answered: 1 week ago

Question

How does ISDN work?

Answered: 1 week ago

Question

3. Identify challenges to good listening and their remedies

Answered: 1 week ago

Question

4. Identify ethical factors in the listening process

Answered: 1 week ago