DARK MODE

LIGHT MODE

Adding an Event Listener

We use .addEvnetListener() method to set up an element to listen for a specific event

When we switch the slider to "Light Mode", the background is changed to a light color.

When we switch the slider to "Dark Mode", the background is changed to a dark color.