Q. What would be the result of the following statement in JavaScript using regular expression methods ?
β
Correct Answer: (B)
Returns [“123″,”456″,”789”]
Explanation: The split() method can take regular expressions as its arguments. The split() method generally breaks the string on which it is called into an array of substrings, using the argument as a separator.