Create a JavaScript function
updateString
that takes in
three parameters :-
- inputString
- originalSubstring
- additionalSubstring
This function carries out
the following actions:
- Creates a new string by
replacing
originalSubstring
within inputString
with a
combination of originalSubstring
and additionalSubstring
in upperCase.
- Logs the value of the new
string to the console.
For example: