I have googled this and read the w3c school page as well as MDN web tools page but the syntax of it still confuses me.
the syntax of it should be something like this:
string.replace(regexp/substr, newSubStr/function[, flags]);
so… what does regexp mean?? which one is replacing which??
could someone list me some examples of this replace method?
did we learn this in freecodecamp challenges? I sort of remembering learning it but could not find it.