Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 209 Bytes

expression-trace-foo-bar.md

File metadata and controls

7 lines (6 loc) · 209 Bytes

Create an expression trace for the third line and evaluate the output.

let a = [{ foo: 'x', bar: 'y', k: 0 }, 'oo', [0, 2]]
let b = [a[2], { blah: a }];
console.log(b[1].blah[0]['f' + a[1]] + 'p');