[Solved] What does [ ] mean in JS?
[] is used in arrays to specify the index we need to access, when we say: someArray[0] we are getting the value from array’s first index and in your case it is specifying the index via variable which is coming from the loop and in second it is specifying object’s property to get the property … Read more