Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
Next, write a function with the name replace that takes 3 parameters.
- The first parameter should be a
String
type and hold the value of the text you want to replace a character in. - The second parameter should be
String
type and hold that value of the character you want to replace. - The third parameter should also be a
String
type and hold the value of the characher you want to replace the given character with.
replace Function
1
2
3
4
5
6
7
8
9
// Create your function here.
// {
// Do not delete the lines below!
module.exports = replace;
// }
Press desired key combination and then press ENTER.
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content