Skip to content

This keydown exercise changes text to emojis when the user presses "1," "2," or "3," and clears the emojis when the user selects the "Clear" button.

Notifications You must be signed in to change notification settings

marisabrantley/keypress-surprise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keypress Surprise Exercise

This keydown exercise changes the numbered boxes to emojis when the user presses "1," "2," or "3" and clears the emojis when the user selects the "Clear" button.

Objective

Use querySelector(), keydown events, a callback function, conditional statements and innerText to change the text to emojis, and a "Clear" button to revert it.

keypress-surprise

Launch

View the Keypress Surprise here: https://marisabrantley.github.io/keypress-surprise/

Class

Skillcrush, Break into Tech Blueprint

JavaScript Fundamentals