Strings

Creating strings

Escaping symbols

Escape notation

Concatenating strings

String templates

String length

Character and substring

Start and end

Changing string


Exercises

  1. Declare a variable, assign the string I'm your father to it.
  2. Declare two variables, assign the string Hello, to the first; and assign your name to the second. Connect these two variables.
  3. How do you find the length of a string?
  4. Define a variable with string Hello, AlphaGo. Get the first 7 characters of it. Get the index of Alpha. How do you know if the string World in the variable?
  5. Define a variable with string Hello, Java. Replace Java with JavaScript.