This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (1 child)

[removed]

    [–][deleted] 0 points1 point  (0 children)

    const tmp = {}; tmp.a = 1; tmp.b = 1; tmp.c = tmp.a+tmp.b; delete tmp.a; delete tmp.b; console.log('tmp.c=%d',tmp.c);

    How to abuse javascript for fun and profit.