#concat method

4 messages · Page 1 of 1 (latest)

heavy oracle
#

In the reading of Array Methods I ran into something that confused me a bit. This example alerts two objects but why? Sorry I’m lost
let are =[1, 2];
let arrayLike = {
0: “something” ,
length: 1
};
alert(arr.concat(arrayLike));
//1,2[object Object]

Also I might be posting in wrong place I’ll search another place to post this thanks so much

hard kiln
#

Your best bet is to post this in the #1084551836817698906 channel; this help channel is restricted in options (we can't post screenshots, for example.) If that says No Access, go to #❗rules and click on the green checkmark at the bottom of the page; that will unlock the rest of the server for you. Good luck!

raven plume
heavy oracle