Skip to main content
100%

Sample problems 3: objects and arrays

✓ Published0🌍 Public
LLaurynKW
Last edited Mar 1, 2018
Created on Mar 1, 2018

This example presents four JavaScript practice problems for manipulating arrays of objects, specifically a list of U.S. states with their names, IDs, and populations. The code demonstrates calculating the mean population using both D3’s `d3.mean()` aggregate function and manual iteration with `forEach` and a `while` loop. The visualization itself renders no graphics; instead, it instructs users to open the developer console to view computed results. The page uses D3 v4 and is forked from a series of related blocks by scresawn.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/scresawn/'>scresawn</a>'s block: <a href='http://bl.ocks.org/scresawn/ad5f8f49f1364e79ea5550b55f7933a5'>Sample problems: objects and arrays</a>

forked from <a href='http://bl.ocks.org/scresawn/'>scresawn</a>'s block: <a href='http://bl.ocks.org/scresawn/3197a1fbb07bd07717ef05675c9e7396'>Sample problems 2: objects and arrays</a>

forked from <a href='http://bl.ocks.org/scresawn/'>scresawn</a>'s block: <a href='http://bl.ocks.org/scresawn/830c9c5bf6022f3211a521a04eefd5d3'>Sample problems 3: objects and arrays</a>

mit Licensed

Similar vizzes