JavaScript String Data Type with Example

Card image cap

JS String Data Type

String is a primitive data type in JavaScript. A string is textual content. It must be enclosed in single or double quotation marks.

Example:

Result:

   Demo: JavaScript String
   Welcome to aimtocode
   Keep Learning

Read Also:


Card image cap