Undefined / Null
Get hands-on experience on how to use undefined values or null as a JavaScript data type.
We'll cover the following
Undefined values
When you declare a variable, its value is initialized to whatever value you assign by using the =
sign. The following code snippet will initialize the variable as pi
a number.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy