We take array as a input if we want to put anything in another array in C++ but in Javascript we are not taking .
How inn concat part it create new array by own ?
Why we don't take array as in c++
Hi @mansisingh2803,
The concat() method does not change the existing arrays, but returns a new array , containing the values of the joined arrays.The concat method creates a new array consisting of the elements in the object on which it is called, followed in order by, for each argument , the elements of that argument (if the argument is an array) or the argument itself (if the argument is not an array). It does not recurse into nested array arguments. for further deep dive kindly visit the link.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.