js-test-37

What’s the output?

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

In this code snipped, all the arguments provided to the function split will be collected and placed in a single array args.

The fact that we provide a single argument hello, doesn’t change the expected behavior.

As all arrays are objects in JavaScript, we’ll see the string object printed to the console.


ANSWER: the output will be object.