Message from JavaScript discussions

August 2020

β€” You own on papers, okay, that's even worse.. treachery possible

β€” 

The crypto industry is emerging if you've noticed and the anticipated capitalization of the project is $1,000,000 within 2 years.

β€” I see no crypto, am i blind🀀

β€” WHAAT!!

β€” Ye, show me what they sell in *B* like some online-shop example.. that's not a trade but gambling

β€” First = 2 in [1, 2];
const second = '2' in [0, 1, 2];

console.log(first, second);


Output : false,true.


Can someone,please explain.

Message permanent page

β€” In array in checks for indexes and in object it checks for keys

β€” Coz,its checking for an index 2 in the first which isn't there so it returns false ?

Second case ? Why it's returning true as output ?

Message permanent page

β€” Yes

β€” Second case there are 3 elements in the array hence index 2 exists

β€” But '2' is a string,right ?

Aren't we checking for a string '2' in the array ? #Confused.

β€” Coerced ?