I was trying something in the browser console and I encountered the following scenario. What is happening under the hood here?
'hello'[4] === 'hello'[1,2,3,4] === true;
I was trying something in the browser console and I encountered the following scenario. What is happening under the hood here?
'hello'[4] === 'hello'[1,2,3,4] === true;
Because both 'hello'[4]
and 'hello'[1,2,3,4]
returns o