Goal: Practice using npm and webpack to streamline your development process.
exportstatements to get them communicating.
We recommend building every webpack environment from scratch today. Then, in the future, you can copy/paste your configuration files and run
$ npm install.
Follow along with the prework to set up a basic environment. Don't build out the business logic, though! Just focus on getting familiar with the new tools we are using.
Create a journaling website where a user can write entries including at least a title and body. Create
Entry objects that include a method to return the number of words in the entry. Then, add a separate method (or methods) to return the number of vowels and consonants in each entry. Finally, add a method called
getTeaser to return the first sentence of the entry. If the sentence is over 8 words, only display those first 8 words.
It's fine if you just work on Shape Tracker and Journal today, but if you are looking for more of a challenge, create a game based on the card game Memory.
You'll need to generate a grid of cards. Each card can have a word or number on it, and there should be two of each card. If you have a deck of ten cards there should be five different pairs of cards.
All cards should start face down. Each time the user takes a turn, they click on two cards. When a card is clicked, the pictures should be revealed. If the user gets a pair of cards with the same picture, the cards remain face-up. If the user's selected cards are different, they should return to face down. When all the cards are face up, the user has won. The object of the game is to find all the pairs in as few turns as possible.
If you'd like to try this prompt with images instead of numbers or words, you will need to use
image-loader, which we haven't covered yet. See the following lesson for more information.
This prompt takes the challenge level up another notch. Create a version of the game Simon. In Simon, the game generates a sequence of colored lights for you to mirror. It starts out simple; first only one color, then if you get that right then you have to remember 2 colors. The sequence does not change every time, it just gets longer and longer.
For example, here is a sequence of turns:
["red"] ["red", "blue"] ["red", "blue", "yellow"] ["red", "blue", "yellow", "red"] ["red", "blue", "yellow", "red", "red"] ["red", "blue", "yellow", "red", "red", "yellow"] ...
This is just an example. You do not have to use the above format to generate sequences,
Lesson 23 of 48
Last updated more than 3 months ago.