What does window['someKeyword']
mean in JavaScript?
I guess the window is the DOM window object, but the syntax to retrieve a property is window.propertyName
in the reference I found, not window['propertyName']
. Are these two ways to retrieve the property?