Sample problems: objects and arrays
This example presents five JavaScript practice problems embedded in an HTML page, focusing on array and object manipulation rather than visual output. The exercises involve merging state names with their two-letter IDs, finding common elements between arrays, sorting state objects by population, and using the modulus operator to filter numbers. Built with D3 v4, the code uses `d3.range` to generate a sequence of integers, though all results are meant to be viewed in the browser’s developer console, as no SVG or graphical rendering is included.
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>