javascript regular expression test vs match

 

 

 

 

Javascript Question.If you need to know if a string matches a regular expression regexp, use regexp.test(string). Is the difference significant? Matching a single literal character