This content originally appeared on DEV Community and was authored by Coderslang: Become a Software Engineer
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.
This content originally appeared on DEV Community and was authored by Coderslang: Become a Software Engineer
Coderslang: Become a Software Engineer | Sciencx (2021-05-03T12:49:53+00:00) JavaScript Interview Question #37: What’s the type of a single argument provided to the split function?. Retrieved from https://www.scien.cx/2021/05/03/javascript-interview-question-37-whats-the-type-of-a-single-argument-provided-to-the-split-function/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.
