var name = “John” // String of text “John”
We simply wrap our text in quotation marks, and we have a string. What if you accidentally use single quotes instead of double quotes? No problem, that will work too. In fact, the two are completely interchangeable. You can create a string with either single or double quotes, like so: