Conteúdo do Curso
Introduction to JavaScript (staging)
Introduction to JavaScript (staging)
Undefined
What is Undefined
Undefined is also a data type in JavaScript just like the null
. When a variable is created or declared without assigning any value to it, then the value of the variable will be set as undefined
by default.
let age; console.log(age);
Tarefa
Declare a variable numberOfItems
and assign the value of undefined
to the variable and show the value of the variable.
So, undefined variables can also be declared using the undefined
keyword.
Obrigado pelo seu feedback!
Undefined
What is Undefined
Undefined is also a data type in JavaScript just like the null
. When a variable is created or declared without assigning any value to it, then the value of the variable will be set as undefined
by default.
let age; console.log(age);
Tarefa
Declare a variable numberOfItems
and assign the value of undefined
to the variable and show the value of the variable.
So, undefined variables can also be declared using the undefined
keyword.
Obrigado pelo seu feedback!
Undefined
What is Undefined
Undefined is also a data type in JavaScript just like the null
. When a variable is created or declared without assigning any value to it, then the value of the variable will be set as undefined
by default.
let age; console.log(age);
Tarefa
Declare a variable numberOfItems
and assign the value of undefined
to the variable and show the value of the variable.
So, undefined variables can also be declared using the undefined
keyword.
Obrigado pelo seu feedback!
What is Undefined
Undefined is also a data type in JavaScript just like the null
. When a variable is created or declared without assigning any value to it, then the value of the variable will be set as undefined
by default.
let age; console.log(age);
Tarefa
Declare a variable numberOfItems
and assign the value of undefined
to the variable and show the value of the variable.
So, undefined variables can also be declared using the undefined
keyword.