Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Undefined | Data Types and Variables
Introduction to JavaScript (staging)

Swipe um das Menü anzuzeigen

book
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.

12
let age; console.log(age);
copy
Aufgabe

Swipe to start coding

Declare a variable numberOfItems and assign the value of undefined to the variable and show the value of the variable.

Lösung

So, undefined variables can also be declared using the undefined keyword.

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 31

Fragen Sie AI

expand
ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

book
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.

12
let age; console.log(age);
copy
Aufgabe

Swipe to start coding

Declare a variable numberOfItems and assign the value of undefined to the variable and show the value of the variable.

Lösung

So, undefined variables can also be declared using the undefined keyword.

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 31
Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
Wir sind enttäuscht, dass etwas schief gelaufen ist. Was ist passiert?
some-alt