exec() is a method of RegExp objects, not a global built-in function. parseInt(), eval(), and parseFloat() are all global functions available without any object prefix. The exec() method must be called on a RegExp instance and returns match information for a regular expression test.