Strings
Creating strings
Escaping symbols
Escape notationConcatenating strings
String templates
String length
Character and substring
Start and end
Changing string
Exercises
- Declare a variable, assign the string I'm your father to it.
- Declare two variables, assign the string Hello, to the first; and assign your name to the second. Connect these two variables.
- How do you find the length of a string?
- 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?
- Define a variable with string Hello, Java. Replace Java with JavaScript.