Console log... this year has quotes around the output...why?

Hey there, what’s up with the console log output this year? Last year, “hey” would print out in the log as hey, this year “hey” prints out as “hey” . See this image for some examples even including contatenating strings and numbers.

Last year, even summer, the last line would have shown up as
message14 3
no quotes.

Hi @tahlsch,

I am not connected to anyone who made those changes, but my guess is that quotes more accurately reflects the output is a string, as opposed to a number (in terms of what type of data is being stored/expressed).

You can see some differences here:

Not sure how familiar you are with the concept of different data types, but in case you’re not familiar with that, I found a blurb here: https://www.w3schools.com/js/js_datatypes.asp

Frank

Hi @tahlsch
@frank_w_lee is correct - the output was changed to more clearly expose the type. You may also notice the different colors (blue for number, red for string) that help make this clear. This is one of the changes that the Debugging Console went through this past year.

Want to see more cool changes? Output a list using console.log. Now when you click the arrow in the console next to the list, you can see the index for each element!