Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Boolean Naming Convention | JavaScript syntax
Introduction to JavaScript (staging)
course content

Kursinhalt

Introduction to JavaScript (staging)

Introduction to JavaScript (staging)

1. Introduction
2. JavaScript syntax
3. Data Types and Variables

book
Boolean Naming Convention

Boolean naming convention

Boolean, in programming, is a data type that is either true or false. Prefixes like is, has, and are added in the booleans to distinguish them from other variables. Boolean data-type has two values true or false.

Note We will discuss booleans in more detail in the upcoming chapters.

1234567
// Not clear that the identifier is a boolean let clear = true; console.log(clear); // clear that the identifier is a boolean let isClear = true; console.log(isClear);
copy
Aufgabe

Swipe to start coding

Declare a boolean variable with an identifier Raining. Use the prefix is with the above boolean variable and store the false value in it. Display the value of the variable in the end.

Lösung

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 2. Kapitel 9
toggle bottom row

book
Boolean Naming Convention

Boolean naming convention

Boolean, in programming, is a data type that is either true or false. Prefixes like is, has, and are added in the booleans to distinguish them from other variables. Boolean data-type has two values true or false.

Note We will discuss booleans in more detail in the upcoming chapters.

1234567
// Not clear that the identifier is a boolean let clear = true; console.log(clear); // clear that the identifier is a boolean let isClear = true; console.log(isClear);
copy
Aufgabe

Swipe to start coding

Declare a boolean variable with an identifier Raining. Use the prefix is with the above boolean variable and store the false value in it. Display the value of the variable in the end.

Lösung

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 2. Kapitel 9
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
We're sorry to hear that something went wrong. What happened?
some-alt