HTML and CSS Reference
In-Depth Information
Any understanding of JavaScript begins with an understanding of its data types, and how
these types are used.
JavaScript has the following data types:
• String
• Number
• Boolean
• Null
• Undefined
• Object
Each of these will be outlined in the sections below.
Strings are series of characters enclosed in either single or double quotes:
> "hello world"
"hello world"
> 'hello world'
"hello world"
The examples above are referred to as string literals. We can also assign a string to a vari-
> s = 'Hello world'
"Hello world"
Search WWH ::

Custom Search