In this tutorial, you’ll learn:
- How to create custom objects
- What a constructor is
- What an object’s prototype property is
- Number, and
Throughout this tutorial, we’ll use the latter three extensively.
A Boolean is a logical entity that consists of either a true or a false value. An example of one is:
var BooleanValue = true;
A Number is a set of numerical digits that represent a number. Through this tutorial, we’ll only use base-10 numbers. An example:
var NumericalValue = 354;
A String is a set of zero or more characters. An example:
var StringValue = "This is a String";
var BooleanValue = true; var NumericalValue = 354; var StringValue = "This is a String"; alert(typeof BooleanValue) // displays "boolean" alert(typeof NumericalValue) // displays "number" alert(typeof StringValue) // displays "string"
Go to page: 1 | 2 | 3 | 4