Help please! Javascript question

what’s the returned result as below?

s = ‘abcd’;
return s.split(‘x’);

it’ll return a null array or an undefined object?

Thanks!

an array with a single string element.

thanks a lot!

For future reference, you’ll find that Mozilla’s Javascript reference is a good resource.

The page about the split method says:

When the string is empty, split returns an array containing one empty string, rather than an empty array.