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

Learning Plan 5 5.3 Lab 2

# 5.3 Lab 2

#### File: /Learning Plan 5/5.3lab2.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 /unit4/jsFiles/5.3lab2.js in Microsoft Visual Studio.
- Lab Steps:
  1. Create a global variable above the function `lab53_2()`. This variable will hold your name.
  2. Create a new function before the function `lab53_2()` and after the global variables. Name this function, `outputName()`.
  3. In this new function, output the global variable followed by a "`<br />`" tag. We'll do this the old-fashioned way with a document.write().
  4. In the function `lab53_2e()`, set the value of the global variable to your name. Then call the `outputName()` function.
  5. Now call the `outputName()` function a few more times with each call on its own line.
     statement.

### Example Output

    John Smith
    John Smith
    John Smith

### Your Output: