Type Casting : Type Conversion : Number Data Type JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Number Data Type » Type Conversion »

 

Type Casting










Type casting allows you to access a specific value as if it were of a different type.

Three type casts are available in JavaScript:

Boolean(value) -- casts the given value as a Boolean

Number(value) -- casts the given value as a number (either integer or floating-point)

String(value) -- casts the given value a string





HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Number Data Type
» Type Conversion