"If the first argument to String.replace() is a string,
only the first instance of that string is replaced. To
replace all instances, a regex is necessary"
That's not that much advanced javascript knowledge. "If the first argument to String.replace() is a string,
only the first instance of that string is replaced. To
replace all instances, a regex is necessary"
That's not that much advanced javascript knowledge.I've been writing JavaScript off-and-on since I was 12. I've used Node.js extensively enough to find bugs in it, including one that ended up being a bug in V8[1][2]. If I'm not an experienced JavaScript developer, then very few are.
1. http://geoff.greer.fm/2012/05/30/leaky-abstractions-a-journe...
"You could stare at that function for hours without seeing
the problem. It requires knowledge of how JavaScript’s
String.replace() works:"
Okay, but "knowledge of how JavaScript's String.replace() works" is showing that the experience of those guys is not the greatest. I'm pretty sure every decent JS developer knows this after a short amount of time, because "String.replace" is used pretty often.