QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 35

What is returned by "red,blue".split(",")?

  1. ["red", "blue"]Ճիշտ պատասխան
  2. ["red", ",", "blue"]
  3. "red", "blue"
  4. The number 2

Բացատրություն

split uses the comma as a separator and returns an array containing the two surrounding substrings. The comma is omitted from these ordinary results, and the source string is not modified.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 35: What is returned by "red,blue".split(",")? · JavaScript Fundamentals · Questena