Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Script loop 1a. b. c. d. e. Complete the following code, replacing the FINISH ME parts with your own code, to produce the following

Java Script

loop

1a.

image text in transcribed

b.

image text in transcribed

c.

image text in transcribed

d.

image text in transcribed

e.

image text in transcribed

Complete the following code, replacing the "FINISH ME" parts with your own code, to produce the following output: 2 times 2 2 times 2 4 2 times 3 6 2 times 4 8 Use for loops to produce the following console output: 1A 7, 6, 4 Blast off! Write a function named vowelCount that accepts a string and returns the number of vowels (a, e, i, o, or u) that the string contains. For example, the call of vowelCount ("kookaburra") should return 5 (two o's, 2 a's, and one u). When passed a string without any vowels (such as an empty string, "01234", or "sky"), O should be returned. Write a function named stutter which takes a string and uses a for loop to return a new string replacing each letter of the parameter with consecutive duplicates of the same letter. For example, a call of stutter ("Pikachu") would return "PPiikkaacchhuu". Write a function named printTriangle that uses a for loop to produce the following console output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions