JavaScript Practice Test
JavaScript Regular Expressions
Which method tests whether a regular expression matches a string and returns a boolean?
Select your answer
A
regex.test(str)
B
str.match(regex)
C
regex.exec(str)
D
str.search(regex)
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49
🃏 Study This Quiz as Flashcards →