Let's make a face with D3.js!
This example demonstrates how to build a smiley face using fundamental D3.js DOM manipulation, with a yellow circle for the head, black circles for the eyes, and an arc path for the mouth. The code uses D3’s `select` and `arc` APIs to append SVG elements to an `svg` container, positioning them based on the SVG’s width and height attributes. It renders entirely as SVG in the browser, importing D3 v5 from a CDN. The example highlights basic shape creation and attribute setting without data binding or interaction.