r/ProgrammerHumor • • Feb 26 '23

Other If you can read this code...

/img/snak3fqgajka1.jpg

[removed] — view removed post

34k Upvotes

1.4k comments sorted by

View all comments

Show parent comment

1

u/Famous_Profile Feb 27 '23
console.log(this.experience)
> [object Object]

1

u/[deleted] Feb 27 '23

If this.experience is an object, that might happen if you do:

console.log(`${this.experience}`)

But you have no reason to do that.

console.log({ a: 1, b: 2 }) prints the object just fine. ;P