strange behaviour of console.log

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

thosrtanner
Lunatic
Lunatic
Posts: 395
Joined: 2014-05-10, 18:19
Location: UK

strange behaviour of console.log

Unread post by thosrtanner » 2023-04-13, 10:51

Not sure if this is the right forum, if not my apologies, and please move it to the right place.

I've just noticed this slightly odd behaviour:

{code}
>>> console.log('x y zz y')
x y zz y
>>> console.log('x "https://www.palemoon.com"')
x "https://www.palemoon.com"
>>> console.log('x https://www.palemoon.com')
"x https://www.palemoon.com"
[/code]

why does the 3rd one get a set of quotes round the whole line?