Either ‘single’ or “double” quotes are used to create strings.
You can use both of them, the main thing is that if you start a line with a single one, although there may be doubles inside, it must also be completed with a single one. And, accordingly, with double quotes.
If the same quotes are used inside the string as outside, then they must be escaped with a backslash - the so-called "escape character". It is appended ➕ before the enclosing quotation mark `\ '' so that it does not indicate the end of the line.
SyntaxError: Unexpected token (1:8) 1 : return () ^
Note that the backslash
\ is only used to correctly read the string by the interpreter, but it is not written 🖊️ to the string after it has been read. When a string is saved to main memory, the
\ character is not added to it. You can clearly see this in the findings.
Thanks goes to these wonderful people (emoji key):
🐛 🎨 🖋