Media Computation Skills Lab

MTEC 1003

Lab 5 - Part 1 - JavaScript Values, Types, Operations, Variables, Calling Functions, and Input/Output

In this lab, you’ll be creating a few programs:

  1. greetings
  2. madlibs and madlibs with prompt

Instructions

Setup

Let's start with a simplified way of setting up a new repository...

ProTip: Bookmark the following page so that you can easily repeat these steps in your future labs!

Cloning a Remote Repo Using Your GitHub API Access Token

Once you've completed the steps at the link above, you're ready to write some JavaScript.
Open up your text editor (e.g. Atom, Sublime Text, etc.)...

Note: ALL FILES YOU CREATE BELOW MUST BE SUBMITTED IN YOUR NEW REPOSITORY THIS WEEK.


greetings

(prompt) What's your name?
> bree
Hi bree!

madlibs

Write a program that simulates MadLibs! It will ask your for words, and then it will print out a story (in this case lyrics), with the user entered words substituted for words in the story.

Part 1

var noun = 'pizza';
var adjective = 'ridiculous';
etc...
On a tropical island,
Underneath a molten lava moon.
Hangin' with the hula dancers,
Askin' questions cause' they got all the answers.
On a tropical pizza,
Underneath a ridiculous moon ...

Part 2


MTEC 1003 - Media Computation Skills Lab