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

Course Content

Introduction to JavaScript (staging)

Introduction to JavaScript (staging)

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

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

Task

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.

Task

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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 2. Chapter 9
toggle bottom row

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

Task

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.

Task

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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 2. Chapter 9
toggle bottom row

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

Task

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.

Task

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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

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

Task

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.

Switch to desktop for real-world practiceContinue from where you are using one of the options below
Section 2. Chapter 9
Switch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt