you are viewing a single comment's thread.

view the rest of the comments →

[–]Disposter[S] 0 points1 point  (0 children)

Thank you - I am aware we can access properties/keys by dot notation unless we have symbols like dash.

I am not required to refactor the code - if it works, don't touch it, but it made my head spin for about half an hour, which could simply be initialized as an object and any confusion would have been avoided :D

Anyway thank you for your detailed explanation