Basically, my question is about how Javascript handles regex literals.
Contrasting with number, string and boolean where literals are primitive data types and corres
Yes, new RegExp("something", "g") is the same as /something/g