I kind of jumped ahead and finished day 03’s excercise as well today! πŸ™ƒ

This time I learned about CSS variables and how to control them using JavaScript. I also learned a bit about registering and using event handlers for elements in JavaScript. There is a list of all available event handlers here if you are curious to check that out.

A live version of this project is available here. The entire code is available here.

JavaScript - Day 03 - CSS variables and JS
JavaScript – Day 03 – CSS variables and JS

It has three inputs – primarily two range inputs and one color input that you can use to modify. Give it a shot!

Published by Arun

Happiness Engineer, Automattic; Prev, Freshworks Inc