Question: Write a function that searches the string ( passed as first argument ) for the character ( passed as second argument ) and changes the
Write a function that searches the string passed as first argument for the character passed as second argument and changes the case for all instances of that char found in string. The function should return the new string as shown in example below: functionabRAa returns AbRaAssignmentpdf X A file:C:UsersbhatiOneDriveDesktopAssignmentpdf of O Fit to page IL Page view AV Read aloud Add notes String builtin functions endsWith includes indexof lastIndexOf localeCompare match repeat replace search slice split startsWith substr substring toLocaleLowerCase toLocaleUppercase toLowerCase toString toUpperCase trim valueof trimLeft and trimRight unshift valueof Array builtin functions concat copywithin every XO fill filter find findIndex forEach indexOf isArray join lastIndexOf map pop push reduce reduceRight reverse shift slice some sort splice toString Type here to search CX o C ENG : AM
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
