Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can you also post the output screenshot. and the output should be same as shown below. Question #4 : Write a function named a2q4 in
can you also post the output screenshot. and the output should be same as shown below.
Question #4 : Write a function named a2q4 in JavaScript declared in an external file named a2q4.js, and included in the html file in the head element. This function takes as a parameter an array of strings called names. This function returns the number of names in the given array that start with either the "pa" or "po" patterns and that do not contain the letter "u" in their names. The function must be called from inside the body element with these array values: "party", "flight", "cave", "whole", "bubble", "pollution" The program displays the result as follows: Assignment 2 Question 4 The number of words starting with "pa" or "po" and not containing the letter "u" is: 1 Hint: Use a for loop .Use the existing method search0 to provide you the position of these patterns in the arrayStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started