Skip to content

Codecademy project re using vanilla JS to display random message

Notifications You must be signed in to change notification settings

mreed4/mixed-messages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Per the project on Codecademy, this should display a random message to the user each time the page refreshes. It should also pull from at least three separate sources of information. In 2021, after I first built this, I wrote up a post on Hashnode, describing the process in developing my solutiuon to this project.

In 2023 I refactored the project to (1) improve the functions, to (2) remove my own odd choice to rely on objects (not arrays), and (3) I added a keyboard event. When one presses space, a new message is generated--though this time its functionality is in part reliant on the JavaScript void operator--new to me!