Strings in JavaScript
Strings are used to represent text in JavaScript. They are one of the most common data types and are immutable – meaning once created, their content cannot be changed.
Creating Strings
Strings can be created with single quotes, double quotes, or backticks (template literals).
Template Literals
Backticks allow embedded expressions and multi-line strings.
String Length
Common String Methods
Strings have built-in methods (they do not change the original string).
Concatenation and Splitting
Immutability
Strings cannot be changed in place – methods return new strings.
Quick Quiz
Wir haben die Materialien überprüft, dennoch können Fehler vorkommen. Der Inhalt dient ausschließlich Bildungszwecken, daher verwende ihn auf eigene Verantwortung und überprüfe ihn bei Bedarf mit anderen Quellen.
✨ Frag Lara — deine KI-Lernpartnerin
Entsperre personalisierte Lernunterstützung. Lara kann Lektionen erklären, Themen zusammenfassen und deine Lernfragen beantworten — verfügbar ab dem Go-Tarif.
Lara hilft dir, schneller zu lernen — exklusiv für ReadyTools Go-, Plus- und Max-Mitglieder.
