3 ms·
By using it to solve real practical problems. The most common uses in JavaScript are in the RegExp test method and the String replace method. The replace meth
by austin-cheney 2y ago
By using it to solve real practical problems.
The most common uses in JavaScript are in the RegExp test method and the String replace method. The replace method is cool because it can receive a function as the second argument and the argument of that function is the value matched by the RegExp that can be modified and returned.