Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Ah! I see it. It's what I missed. Thanks fam
It is in the MDN docs here. This table shows all of the 'magic strings' you can pass to
String.prototype.replace
.That's not regex and it's not inline with the docs at MDN. Where am i wrong?
Hi ozichukwu,
$1
refers to the first group (captured by the()
).why does
"$1"
work? what does it mean?MDN said the second argument of
replace
can either be string or function. Thanks in advance.