Course Content
Introduction to JavaScript (staging)
Introduction to JavaScript (staging)
2. JavaScript syntax
JavaScript SyntaxJavaScript VariablesJavaScript OperatorsIdentifiers in JavaScriptNaming IdentifiersReserved keywords in JavaScriptNaming Convention in JavaScript. Case StylesVariables Naming ConventionBoolean Naming ConventionConstant Naming ConventionFunction & Classes Naming ConventionMultiline StringsMultiline Strings. ConcatenatingCommenting in JavaScriptCommenting in JavaScript. Multi-line Comments
3. Data Types and Variables
What are Variables?What are Data-types?JavaScript and Type ConversionVar 1/3Var 2/3Var 3/3Let 1/2Let 2/2Constant 1/3Constant 2/3Constant 3/3Number 1/3Number 2/3Number 3/3Boolean 1/4Boolean 2/4Boolean 3/4Boolean 4/4Strings 1/5Strings 2/5Strings 3/5Strings 4/5Strings 5/5BigInt 1/3BigInt 2/3BigInt 3/3Symbols 1/3Symbols 2/3Symbols 3/3NullUndefinedNull vs Undefined
Null
What is Null
The data type null
represents that there is no value. It is a primitive value in javascript.
To have a better understanding of null
, we must know these two features about null
:
null
provides the non-existent value or empty value.null
has to be assigned to a variable as it is not assigned by default (unlike theundefined
).
let number = null; console.log(number);
Task
Swipe to begin your solution
Declare a variable selectColor
and assign the value of null
to the variable and display the value of the variable.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 30
Null
What is Null
The data type null
represents that there is no value. It is a primitive value in javascript.
To have a better understanding of null
, we must know these two features about null
:
null
provides the non-existent value or empty value.null
has to be assigned to a variable as it is not assigned by default (unlike theundefined
).
let number = null; console.log(number);
Task
Swipe to begin your solution
Declare a variable selectColor
and assign the value of null
to the variable and display the value of the variable.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 30
Switch to desktop for real-world practiceContinue from where you are using one of the options below