Array
, Date
, and Math
, and a core set of language elements such as operators, control structures, and statements. See also client-side JavaScript, server-side JavaScript.undefined
, null
, Boolean
, number
, or string
. The following examples show some primitive values.a=true // Boolean primitive value
b=42 // number primitive value
c="Hello world" // string primitive value
if (x==undefined) {} // undefined primitive value
if (x==null) {} // null primitive value
Date
object. Some methods of Date
, such as getHours
and setDate
, are also methods of instances of the Date
object. Other methods of Date
, such as parse
and UTC
, are static, so instances of Date
do not have these methods.Last Updated: 10/29/98 15:51:16