https://github.com/davemo/js30
my javascript 30 challenges
https://github.com/davemo/js30
Last synced: 4 months ago
JSON representation
my javascript 30 challenges
- Host: GitHub
- URL: https://github.com/davemo/js30
- Owner: davemo
- Created: 2019-03-28T01:00:06.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2021-11-20T00:49:56.000Z (over 4 years ago)
- Last Synced: 2025-09-23T11:57:52.765Z (8 months ago)
- Language: HTML
- Homepage: https://javascript30.com
- Size: 895 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dave Moshers js30 challenges
## Challenge Specific Notes
> 01 - JavaScript Drum Kit
- learning that `HTMLMediaElement.play()` returns a promise was cool
- i wanted to limit the scope of `keydown` events so I added a list of valid codes to filter on when the event was fired
> 02 - JS and CSS Clock
- i decided to default the position in the markup and build a little parser to snag the current state of rotation
- this felt easier than tracking that state in a js variable
- named regex capture groups make this pretty easy
- concern: given i never reset the value on the rotation `deg` things might buffer overflow eventually?
- not yet implemented: binding to the actual current time
- bug: setInterval independently means a slight offset in latency for all the hands