String Literals

By: Dusty Arlia
Published on Sunday, September 15, 2013, 12:57 PM
Last Updated on Wednesday, July 15, 2015 at 4:42 PM
Total Updates: 2

String literals are strings in the form of the value. Variables can be strings, but variables are not string literals.

Here is an example of a string literal:

alert("Hello!");    //Hello! is the string literal

This example is not a string literal: