Introduction

Let’s have a brief introduction to Strings in JavaScript.

String recap

Let’s recapitulate what we already know about strings:

  • A string value represents text.
  • In JavaScript, a string is defined by placing text within single quotes ('I am a string') or double quotes ("I am a string").
  • You may use special characters within a string by prefacing them with \
...