Quiz on the Anatomy of Regular Expressions

Challenge yourself by answering some questions regarding the anatomy of regular expressions.

1

Which of the following is a limitation of using literal notation to define a regular expression in JavaScript?

A)

You can’t reuse the RegExp again if it is used once for a string.

B)

You can’t concatenate the values of variables with literal notation.

C)

Literal notation has not been optimized in JavaScript.

D)

The regular expression written using literal notation cannot be stored in a variable.

Question 1 of 100 attempted

Get hands-on with 1200+ tech skills courses.