JavaScript RegExp Object
The global property specifies whether or not the "g" modifier is set.
This property returns true if the "g" modifier is set, otherwise it returns false.
![]()
The global property is supported in all major browsers.
Check whether or not the "g" modifier is set:
The output of the code above will be:
JavaScript RegExp Object
Your message has been sent to W3Schools.