1. Returns [“123″”456″”789”]
  2. Returns [“123″,”456″,”789”]
  3. Returns [1,2,3,4,5,6,7,8,9]
  4. Throws an exception
7 views

1 Answers

Answer: Option 2

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.

7 views

Related Questions