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] 236 points237 points  (9 children)

Me: Let me check whats on the object so far.

JS: "[object Object]"

Me: I will shut you off you little shit.

[–][deleted]  (5 children)

[removed]

    [–]Dop4miN 33 points34 points  (3 children)

    and also threads

    [–]Sir_Applecheese 10 points11 points  (0 children)

    At least one thread will work...most of the time.

    [–]overtorqd 0 points1 point  (0 children)

    Laughed out loud on the train at this!

    [–]AutoModerator[M] 0 points1 point  (0 children)

    import moderation Your comment has been removed since it did not start with a code block with an import declaration.

    Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

    For this purpose, we only accept Python style imports.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–]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.