I have the following three variables assigned:
const a = {key:true}
const b = {key:false}
const c = {[a]:'1',[b]:'2'}
When I then try to logged the following into the console:
console.log(c[a],c[b])
I got the following:
2 2
When I thought I should get:
1 2
Why am I wrong and how can I fix it?