We already talked about strings earlier, but let's take a closer look at what they are and how to use them in JavaScript.
A string is simply a sequence of characters (letters, numbers, symbols) that represents text. For example:
↗️
Loading editor...
↶
↷
Notice how strings are wrapped in quotes. This tells JavaScript "this is text, not code".
Strings vs Numbers
In JavaScript, "42" (with quotes) is a string, while 42 (without quotes) is a number. They look similar but behave very differently! We'll see this difference more as we progress.