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 |