Fri, 19th Feb 2021, 09:45

TIL calling RegExp.prototype.test multiple times can return different results when the regex is a global one. 🤯

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test

![](/images/media/Screenshot 2021-02-19 at 10.39.27.png)


Comments