Question
Write, test, and debug (if necessary) JavaScript scripts for the problems that follow. When required to write a function, you must include a script to
Write, test, and debug (if necessary) JavaScript scripts for the problems that follow. When required to write a function, you must include a script to test the function with at least two different data sets. In all cases, for testing, you must write an HTML file that references the JavaScript file.
4.8 Function : no_zeros Parameter : An array of numbers. Result : The given array must be modified to remove all zero values. Returns : true if the given array included zero values; false otherwise.
4.9 Function : e_names Parameter : An array of names, represented as strings. Returns : The number of names in the given array that end in either "ie" or "y" .
4.10 Function : first_vowel Parameter : A string. Returns : The position in the string of the leftmost vowel.
Step 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