Sobes.tech
Junior — Senior

Determining the output of console.log in a JavaScript example

livecode

Task condition

Specify what text will appear in the console after executing the following code snippet.

 const a = { a: "a" };
const b = { b: "b" };
const c = {};

c[a] = a;
c[b] = b;

console.log(c[a].a, c[b].b);