So I've only used standard variable types in comparison functions (ints, floats, bools, strings, etc) - and this was my first time using code that looked like: fruit[i] === "๐"
I first tried with a for loop like this:
for(fr in fruit) - and tried to compare fr to "๐" - this didn't work
but for(i=0;i<fruit.length;i++) and fruit[i] === "๐" worked.
Anyone able to help me understand why one type of for loop works and the other doesn't?
And how is the emoji actually being parsed?