Strings in JS

Strings

A String is the term given to a collection of characters stored under one variable name in a program.

Strings are collections of characters stored in memory as a block of contiguous locations

So if we enter “123.4” when asked to input a number, 5 characters are stored together in a single block of memory locations that have consecutive addresses.