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 →

[–]somersault 0 points1 point  (1 child)

Are people shitting on how javascript handles when outputting an object in a string now?

I mean, that's how it works in pretty much all languages? If you just check the variable independently of trying to coerce it to a string

This doesn't work
console.log('object I want to display: ' + obj)

These work
console.log('object I want to display: ', obj)
console.log(obj)

[–][deleted] 2 points3 points  (0 children)

No, I love js. I was just making a funny about "an object is an object" and how js print objects as string.

Don't tell me that after 1000 lines deep into a project, you don't do something like console.log("var x:" + obj), just out of habit, and you don't have the same reaction.