Web APIs.
Project overview
For Learning Plan 2.2, I built Web API Lab, a responsive webpage with three interactive demos. Visitors can save a note that’s still there after refreshing the page, copy text to their clipboard, and open a dialog using the browser’s built-in controls. I included the JavaScript call behind each demo and linked to the web specification so visitors can see how each feature works.
A moment to reflect✳
Reflection prompt
Building the demos helped me understand how JavaScript works with features already built into the browser. The clipboard demo made me think about what happens when the browser blocks a request and what feedback the user needs when copying fails. I also liked seeing how much the built-in dialog handles for me, including letting users close it with the Escape key. On future projects, I’ll look at what the browser already offers before adding a library.