javascript set variable value as object key code example Example: js variable for key obj { [yourKeyVariable]: someValueArray, }