Question
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
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