Open JoshCavallaro opened 6 years ago
for example: var varkey = "mykey"; var myobj = {[varkey]:"myvalue"} this is parsed as an error (unexpected token "["), but is valid javascript
for example: var varkey = "mykey"; var myobj = {[varkey]:"myvalue"} this is parsed as an error (unexpected token "["), but is valid javascript