Question: 1. Write a function called remove_vowels that will take a string parameter, then return that string with any vowels inside removed. This function needs to
1. Write a function called "remove_vowels" that will take a string parameter, then return that string with any vowels inside removed. This function needs to use a loop.
2. Write a function called "is_just_notes" that takes a string parameter containing some number of letters. It should return true if the string only contains musical notes A-G (and spaces), and false if it contains anything else.
3. Read and test the following function:
function do_something(in_string) { let a = 1 let b = ""
while ( true ) { if ( in_string[a] == " " || in_string[a] == "." || in_string[a] == "," || in_string[a] == "?" ) { return b }
a = a + 1 b = b + in_string[a] } }
Pass some inputs to this function and try to figure out what it's supposed to do. What bugs are there? How might the bugs be fixed?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
