Javascript – I dont understand this syntax when looping over an object
I'm learning about looping over objects and I came across this syntax in a Udemy course. Why is it that I can write tools[x] and it returns the value of the objects (hammers, hammers2)? It's my understanding that 'tools' is…