Question: Block string syntax
Closed this issue · 2 comments
vlad0337187 commented
Hello.
Is it normal, that such syntax is valid:
console.log "' function launched"
console.log 'function launched'
console.log "" function launched
, but such - not:
console.log '' function launched
Thanks.
Best regards,
Vladislav.
shanebdavis commented
Good question. That is normal. ‘’ (two single quotes) does not support
block-strings. The reason is sometimes you want an unambiguous empty string.
…On Fri, Apr 27, 2018 at 10:04 PM Vladislav ***@***.***> wrote:
Hello.
Is it normal, that such syntax is valid:
console.log "' function launched"
console.log 'function launched'
console.log "" function launched
, but such - not:
console.log '' function launched
Thanks.
Best regards,
Vladislav.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#23>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AADZTKv3dyR-oJLkRCFGwsThfwsT_Miaks5ts_hAgaJpZM4TrP2f>
.
vlad0337187 commented
@shanebdavis , thank you very much.
Yeah, you're right, it's a good choise.
I'll close this issue then.