Exercise: Counting Population
Explore how to apply JavaScript loops to iterate through a two-dimensional array of demographic objects. Learn to sum populations in regions where the temperature is less than or equal to 10°C, excluding null values. This lesson strengthens your ability to handle arrays and conditional logic in practical scenarios.
We'll cover the following...
We'll cover the following...
Task
A demographist wants to find the total population within a demographic. This demographic is in a region with a temperature less than or equal to 10°C. However, with a limited programming background, the demographist has asked for your help!
Your task: is to find the sum of the population in a two-dimensional array of objects which reside in a region ...