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

Learning Plan 6 6.2 Lab 2

# 6.2 Lab 2

#### File: /Learning Plan 6/6.2lab2.html

### Student

- Name:
- Section:
- Email:

### Lab Specifications

- Open this file in Firefox and Microsoft Visual Studio.
- Add your name, section, and email.
- Open the file /Learning Plan 6/jsFiles/6.2lab2.js in Microsoft Visual Studio.

#### Lab Steps:

1. In the JavaScript file for the lab, create an array variable for the search data.
2. Add variables as needed for the lab.
3. Add an HTML element in the output div tag for displaying the results of the searches.
4. Copy this for the data for the array:
5. Using a loop, find the word in the array that is 13 characters long. Output the found word and its index in the array.
6. Using another search loop, find the first word that has a length of 10 and add the output to the display element. (Don't forget to set the boolean variable back to false.)

### Your Output:

## 6.2 Assignment 2

- 6.2 Assignment 2