Sample problems: objects and arrays
This example presents five JavaScript practice problems focused on manipulating objects and arrays, with output intended for the browser developer console rather than SVG graphics. The code uses D3 v4’s `d3.range` to generate an array of integers from 1 to 10 for a modulus-based filtering exercise. Problems involve merging state IDs from one array into another, finding common elements between two arrays, sorting state objects by population, and identifying the smallest population value. The visualization is purely code-driven, with no visual rendering, and relies on standard array methods like `forEach`, `sort`, and `includes`.
AI-generated descriptionBuilt 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>