Northcentral Technical College Introduction To Programming
10-152-310
Introduction to Programming with JavaScript NTC 10-152-310

Learning Plan 6 6.1 Lab 3

# 6.1 Lab 3

#### File: /Learning Plan 6/6.1lab3.html

### Student

- Name:
- Section:
- Email:

### Lab Steps

- Open this file in Firefox and Microsoft Visual Studio.
- Add your name, section, and email.
- Open the file `/Learning Plan 6/jsFiles/6.1lab3.js` in Microsoft Visual Studio.
- Lab Steps
  1. Create a function above the function `lab61_3();`.
  2. Name the new function `outputName()`.
  3. Add a Parameter to the new function, call it something like "name".
  4. In the new function, output a greeting to the output div tag. Look in the HTML for the id of the tag. You should add some HTML around a greeting that is something like, "Hello, Bob. How's the weather out there?" Feel free to use any greeting you want as long as there is text before and after the name.
  5. In the function `lab61_3()`, prompt the user for a name.
  6. Then call the function `outputName()` and pass the entered name to the function as an Argument.
  7. Test your program.

### Example Output

    Hello, John. How's the weather out there?

### Your Output:

## 6.1 Assignment 1

- 6.1 Assignment 1