---
# System prepended metadata

title: 'Unit 1: Lesson 6 - Coding Lab (Data Flow: Output)'
tags: ['''23-''24']

---

# Unit 1: Lesson 6 - Coding Lab (Data Flow: Output)

## Objective:
The objective of this project is to practice creating variables, assigning values to them, and using console.log() to output a personalized Mad Libs story.

## Instructions

### Part 1: Variable Declaration and Assignment [1.1: 0.5 pt]

1. Begin by declaring variables for different parts of speech (e.g., noun, verb, adjective, adverb) that will be used in your story. For example:
    * Declare a variable called `noun1` and assign it a noun.
    * Declare a variable called `verb1` and assign it a verb.
    * Declare a variable called `adjective1` and assign it an adjective.
    * Declare a variable called `adverb1` and assign it an adverb.

### Part 2: Story Creation [1.1: 0.5 pt]

1. Create a variable called `madLibsStory` and use the variables you've declared above and string interpolation to fill in the blanks of the template below and assign it to this variable as below.

```javascript=
let noun1 = "man"
let verb1 = "run"
let adjective1 = "adventurous"
let adverb1 = "consistently"

let madLibsStory = `Once upon a time, there was a ${adjective1} ${noun1} who loved to ${verb1} ${adverb1}.`

```
    
### Part 3: Output the Story [1.5: 1 pt]

1. Use console.log() to output your Mad Libs story to the console. Ensure that you have calls to console.log() that output:
    - [ ] Individual pieces of data. Ex:
        - [ ] "The noun is: ", `noun1`.
        - [ ] "The verb is: ", `verb1`.
        - [ ] "The adjective is: ", `adjective1`.
        - [ ] "The adverb is: ", `adverb1`
    - [ ] Output the `madLibsStory` variable

### Part 4: Expand Your Story [1.1: 1 pt, 1.5: 1 pt]

1. Get creative! Create additional variables for more parts of speech (e.g., another noun, verb, adjective, adverb).
2. Extend your Mad Libs story and insert the newly created variables.