0% Complete
0/0 Steps

Participants 0

      JavaScript Strings

      A string (or a text string) is a series of characters like “John Doe”.

      Strings are written with quotes. You can use single or double quotes:


      var carName = "Volvo XC60";   // Using double quotes
      var carName = 'Volvo XC60';   // Using single quots

      You can use quotes inside a string, as long as they don’t match the quotes surrounding the string:


      var answer = "It's alright";             // Single quote inside double quotes
      var answer = "He is called 'Johnny'";    // Single quotes inside double quotes
      var answer = 'He is called "Johnny"';    // Double quotes inside single quotes

      You will learn more about strings later in this tutorial.

      Welcome to the Digital Strategy Hub

      We are in beta and please email support @ centerfordigitalstrategy.com with any issues or features that would make your experience better.

      We have a feedback call to hear what would be most useful to you:

      Thursday April at 1 ET / 10am PT