how would I make an object in javascript with a computed name.
Context: I am making an add-on that will sit in the browser, log each hostname visited, create an object named after each one. I'm replacing "." with "_" So for example on this site it would create a stackoverflow_com object.
is this possible?
another example would be var 1+1 (with the variable actually being 2)
I know brackets make this possible with properies but I don't know how to do it with the name itself.