/problem-set-2_2

SE Unit 2 Lesson 2 Problem Set: Variables, Iterators, and Control Flow

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

Unit 2 Lesson 2 Problem Set

Variables and Control Flow

Directions

There are two parts to this problem set:

  • A written response section
  • JavaScript small problems

To complete and submit this problem set:

  1. Your written response questions live in the short-response.md file. Record your answers to these questions in this file, but do not remove the original questions. Remember to use complete setences and style your responses appropriately with markdown.
  2. Your small problems are in the problems directory. The directory contains two files:
    • README.md
    • answers.js

The problem prompts are in README.md. You are to write your solutions in the answers.js file. Each question has a corresponding function body. You are to code your solutions inside of the function body. You will see a comment saying // code goes below. Write your solutions below each line. To test your solutions, run node answers.js from inside the problems directory. Alternatively, if you prefer to stay in your project's root directory, you can test you solutions by running node problems/answers.js

OR

You can preview the index.html file in the browser and open the Console to see your code's output.

  1. Commit frequently.
  2. When you are finished, push your changes to your remote master branch.