JavaScript RegExp global
JavaScript RegExp global
The global property is used for specifying whether the g modifier is set or not. If it is set then it will return true or else false.
Syntax:-
Its syntax is:- RegExpObject.global
Return:-
Its return is:- true if g is set else false