"Double"
'Single'
``Backtick`

Strings are text wrapped in quotes.
Use Backticks (`) for super-powers like multi-line text and variables!

// Modern (Backticks)
let dynamic = `Hello ${name}`;

// Old School (Concatenation)
let simple = 'Hello ' + name;

Quotes vs Backticks

In JavaScript, you can use single (') or double (") quotes for simple text. But the real magic happens with backticks (`). They unlock multi-line strings and dynamic variables!

Concatenation

Before modern JavaScript, we used the '+' operator to glue strings together. This is called concatenation. It works, but it's easy to forget spaces!

Template Literals

Tired of clunky concatenation with '+'? Use Template Literals! Wrap your string in backticks and insert variables directly using `${variable}`. It's cleaner and easier to read.

String Methods

Strings come with powerful built-in tools. You can force text to UPPERCASE, trim away whitespace, or check if a word exists inside. No manual loops required!

Character Access

Under the hood, strings are just a sequence of characters. You can grab any letter using its index, starting from 0. Be careful not to go out of bounds!

Text Mastered!

You now know how to manipulate text like a pro.
Ready for logical truth with Booleans?

AlgoAnimator: Interactive Data Structures