0
/ 75
Complete the following function. Given aString, return a copy of aString where any character next to a star (*) and all stars themselves...
Complete the following function. Given aString, return a copy of aString where any character next to a star (*) and all stars themselves are gone.
So input of "ab*cd"
yields "ad"
and "ab**cd"
also yields "ad"
.
Examples:
starOut("no stars") -> "no stars"
starOut("*sev***eral s*tars*") -> "eral ar"
Your feedback will appear here when you check your answer.