Yup! As long as you're logging the object directly. Append it to a string and (at least when I checked) you tend to get the results of toString. I've added an explicative example; Thanks for the catch!
(FWIW Console.assert (which inspired me to write this post, as part of a longer post ) seems to prefer returning the toString representation on the command line and was sometimes returning it in the browser... But of course, now I can't replicate it and I look Foolish On The Internet)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yup! As long as you're logging the object directly. Append it to a string and (at least when I checked) you tend to get the results of
toString
. I've added an explicative example; Thanks for the catch!(FWIW
Console.assert
(which inspired me to write this post, as part of a longer post ) seems to prefer returning thetoString
representation on the command line and was sometimes returning it in the browser... But of course, now I can't replicate it and I look Foolish On The Internet)