You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The README for JS1 week 3 alleges that JavaScript has special handling for accessing numerical properties. This is not the case. An array is an object with properties for each index thus it does not differentiate between indexes or properties.
I regret looking into this as it kinda seems it converts indexes to string and looks up the property based on that. Knowledge I would rather have been without. 😅
The README for JS1 week 3 alleges that JavaScript has special handling for accessing numerical properties. This is not the case. An array is an object with properties for each index thus it does not differentiate between indexes or properties.
I regret looking into this as it kinda seems it converts indexes to string and looks up the property based on that. Knowledge I would rather have been without. 😅
One can do a quick experiment to see this:
which yields:
The text was updated successfully, but these errors were encountered: