During October 2022 I decided to do the Wes Bos Javascript30 challenge.
Day 1: Drum Kit
This lesson taught me how to listen for key press events, and trigger audio to play as well as adding and removing a class to the corresponding element. Demo here
Day 2: Clock
Today I learned to get the current time and use maths and Javascript to set and rotate the clock hands in real time Demo here
Day 3: CSS variables and JS
This lesson showed how to use and update CSS variables with Javascript Demo here
Day 4: Array cardio day 1
Did lots of cool things with arrays like filter(), map(), sort() and reduce()
Day 5: Flex gallery
Today’s exercise was all about using Flexbox and some event listeners to make a cool expanding gallery. Demo here
Day 6: Type Ahead
This lesson showed how to search a JSON array for words typed into a search box, and then show the results in a list below. Demo here
Day 7: Array cardio day 2
More array function learning: some(), every(), find().
Day 8: Fun with HTML5 canvas drawing
This demonstrates using mouse events to draw on a HTML5 canvas in a fun way Demo here
Day 9: Dev tools tricks
Learnt lots of things about console.log() and similar methods
Demo here (view the console output!)
Day 10: Hold shift to check multiple checkboxes
Looping through checkboxes to see if they are inbetween two that have been checked while holding shift Demo here
Day 11: Custom HTML5 video player
Fun to learn how to get video contols working so a fully customised player can be created Demo here
Day 12: Key sequence detection
Splicing presses into an array, converting to a string and comparing to a secret code to make unicorns appear. Demo here - type ‘unicorn’ to see the result
Day 13: Slide in on scroll
Looked at how to check where on the screen images are and slide them into view Demo here
Day 14: Object and Arrays - reference vs copy
Some handy stuff here with learning to copy an object or array without any changes being referenced in the original
Day 15: Local storage and event delegation
Learned some really useful stuff here. Try the demo by adding items and clicking them, then refresh the page Demo here
Day 16: Mouse move shadow
Showing how to use the mouse position to add some dynamic CSS to some text Demo here
Day 17: Sorting band names
This small script sorts band names alphabetically without the prefixes taken into account (An, The, A). Handy! Demo here
Day 18: Adding up times
A maths exercise in dealing with times and adding them up correctly