Multiple choice general knowledge

Which is not a built-in function?

  1. parseInt()

  2. exec()

  3. eval()

  4. parseFloat()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

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.