JavaScript type conversion

JavaScript Type Conversion

Number() is converted to a number, String() is converted to a string, and Boolean() is converted to a Boolean value.

JavaScript Data Types

There are 5 different data types in JavaScript:

string

number

boolean

object

function

3 object types:

Object

Date

Array

2 A data type that does not contain any value:

null

undefined

typeof operator

You can use the typeof operator to view the data of a JavaScript variable type.

    
Continuing Learning
||
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!