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

Learning Plan 6 6.2 Assignment 2

# 6.2 Assignment 2

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

### Student

- Name:
- Section:
- Email:

## Part 1

1. Open this file in Firefox and Microsoft Visual Studio
2. Add your name, section, and email
3. Open the file "/Learning Plan 6/jsFiles/6.2assignment2.js"
4. Locate the function named "assignment62_2Part1()".
5. Add code after the line: `// PART 1: YOUR CODE STARTS AFTER THIS LINE:` to complete the exercise.
6. Write an application that searches for words in an array and creates a new array of found words and an array of search words that are not found. The application will display the new arrays of found and not-found words every time a new word is entered.
7. Use this array of words for the search.
8. Create an HTML form on the page for entry of the search words.
9. Refresh the display of the new arrays by looping through the arrays, don't just add the new words to the HTML element on the page. Refresh the page several times with the F5 key or Ctl.-R and see if the words that have already been entered still appear.

- Sample Part 1 Output:

  #### Found Words

  1. JavaScript
  2. by
  3. Brendan
  4. Eich

  #### Not Found Words

  1. Explorer
  2. Java
  3. VB
  4. PHP

### Your Part 1 Output:

## Part 2

1. Locate the function named "assignment62_2Part2()".
2. Add code after the line: `// PART 2: YOUR CODE STARTS AFTER THIS LINE:` to complete the exercise.
3. Write an application that determines what numbers exist in both of the two following arrays of numbers.
4. Use multiple functions to solve this exercise.

- Sample Part 2 Output:

  Numbers in both: 123, 234, 345, ...

### Your Part 2 Output:

### Submitting your work

- Zip and submit 6.2 Assignment 2
- Don't forget to also zip and submit your JavaScript file 6.2assignment2.js.
- Make sure that both files are zipped and submitted together.