Something that responds
A page that does something when you click it. Your first encounter with behaviour rather than appearance.
Build something small that responds: a tip calculator, a countdown, a colour picker, a quiz with four questions, a dice roller. Small is the requirement, not a concession.
Get it working, then find the line that handles the click and change one thing about it deliberately. Make the button behave slightly differently. You are not trying to learn all of JavaScript yet; you are proving to yourself that you can read and change the behaviour.
Break it on purpose. Delete a line, see what happens, put it back. Nothing here is precious and the backup is one command away.
Then ship it, and put the live URL in the README.
You should now be able to
- Ship a page with real interactive behaviour
- Read enough JavaScript to change one thing deliberately
- Debug something that does not work
Loading…