InterviewBuddy
All interview questions

In JavaScript, what could go wrong with regular expression flag?

Advanced

Answer

Global regex objects can retain lastIndex state across repeated tests.