What is String Literal in Javascript?

Monib Bormon
Jul 17, 2023

--

For example, we have a variable called var myFullName = “Monib Bormon”. Here A string literal, or string, is a series of zero or more characters enclosed in single or double quotes after the assignment operator.

myFullName is our variable name but the value of the variable enclosed with single or double quotes is known as String Literal in javascript.

--

--

Monib Bormon
Monib Bormon

No responses yet