JavaScript Experiment 1

To see the code's functionality, open the inspect view and go to the console tab.