Skip to content

upperlinecode/mad-libs-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mad Libs

Welcome!

Instructions for cloning down this repository to an IDE (coding environment):

  1. Above the list of files, click on the Code button.
  2. Copy the URL of the repository.
  3. If you are using Repl.it:
    • Select the + Create Repl button on the top left corner of the web page.
    • In the pop up window, select the Import from GitHub button
    • Paste the GitHub URL and click on the button Import from GitHub.

Note: If you are coding along with the video, we suggest you open the video in a window on the left and your code in a window on the right. This method of coding along is called "split screen".

Contents

  1. Intro
  2. The Lab

Intro

This lab will give you practice with variables, console.log, user input and concatenation. The javascript function console.log allows us to easily display pre-written messages. By adding variables, we're able alter parts of those messages without changing the core of our code. We've seen how variables can be concatenated with strings to make custom messages. In this lab, you will be creating a Mad Libs game to get more comfortable with concatenation and have some fun!

If you've never played Mad Libs before, here's how it generally works. One person holds a story that contains blanks, each with a suitable part of speech written under it (verb, adverb, noun, adjective etc.). They ask a friend to supply them with words that match each parts of speech, without letting that friend see the story, writing the words onto the blanks as they go. When they get to the end, they read their ridiculous creation aloud.

The Lab --> Getting Started:

Click on the file on the file named madlibs.js. Follow the steps outlined at the top of the file to help you create a Mad Libs game that you can share with others. Run your code often to make sure it's working. Happy coding!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages