cardElementand the latter
cardMetadata. Avoid naming either variable
cardto prevent miscommunication.
getRandomNummay return a random number that gets stored in a variable
hasPlayerWonwould be preferred boolean variable names than
playerWonbecause the former more explicitly store booleans.
handleand suffixed with the event type. For example, for the on-click callback function for a deal cards button, we might call it
publicfor view templates and public asset files respectively. You can change this in the configs, but we recommend keeping the defaults.
/recipesroute should correspond to an EJS file called