Learning web development: strings and methods in JavaScript
Briefly

Strings represent a data type in JavaScript that consists of zero or more characters, enclosed in quotes. They can be concatenated using the plus operator to form longer strings. Functions can be designed to return strings. Additionally, JavaScript supports nesting variables within other variables, including predefined structures like the Math object, which contains valuable properties. Methods allow functions to be stored within object properties, making it feasible to operate on objects progressively through their defined functionalities.
Strings are a data type defined as a sequence of zero or more characters, represented within single or double quotes. They can also be empty.
String concatenation allows combining strings using the plus operator +. This operator helps in creating more complex strings from simpler components.
Nesting variables enable creating variables that hold other variables. JavaScript supports predefined nested variables such as the Math object.
Methods refer to functions that are stored as properties of objects, allowing functionality to operate on those objects directly.
Read at 2ality
[
|
]