Computed is so [], but the way you initially do is also using strings... and every property has a string as name. You can't say "access object property as a string" since it's always string, e.g., the first value at computed index [] casts into string too, so a[0] is a['0']
a[0]isa['0']bar="bat"thenfoo[bar]would get youfoo.bat