what happens when you console.log(object, object) eg
console.log(({dog:"ljdlf"}), {cat: "djslfj"}, {bear: "dfjlsk"})
// [object Object],{cat: "djslfj"},{bear: "dfjlsk"}
why does it log cat and bear but not dog?
what happens when you console.log(object, object) eg
console.log(({dog:"ljdlf"}), {cat: "djslfj"}, {bear: "dfjlsk"})
// [object Object],{cat: "djslfj"},{bear: "dfjlsk"}
why does it log cat and bear but not dog?
In the code you posted you are using “fancy” double quotes instead of plain old regular ascii double quotes. When I changed them to ascii double quotes they all logged the same way for me.
Where are you seeing this behavior? Here is a screnshot of it running fine in the console:
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).