Creating Strings
There are two ways to create a string in Javascript:
- Using string literal
- Using string object
String in JavaScript
String is used to representing the sequence of characters. They are made up of a list of characters, which is essentially just an “array of characters”. It can hold the data and manipulate the data which can be represented in the text form. We can perform different operations on strings like checking their length, also concatenate them by using +=, +, string operators.
Contact Us