Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Compulsory Task 2 Follow these steps: Open up separation.js. This program uses a set of test strings and calls a method separationString on each string.

Compulsory Task 2

Follow these steps:

Open up separation.js. This program uses a set of test strings and calls a method separationString on each string.

This method should take a string as input, and output a new string with each word on a new line.

Fill in the code for separationString. Do not modify any other aspect of the script.

Compulsory Task 3

Follow these steps:

Open up disappear.js. This program uses a set of test strings and calls a method disappearString on each string.

This method should take as input two strings: myString and toErase. It will look at each letter in toErase, and remove the first instance of that letter from myString.

For example: the quick brown fox jumps over the lazy dog. After stripping a,e,i,o,u becomes: th qck brwn fox jumps over the lzy dog.

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

Learning PostgreSQL

Authors: Salahaldin Juba, Achim Vannahme, Andrey Volkov

1st Edition

178398919X, 9781783989195

More Books

Students also viewed these Databases questions