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

Contenido del Curso

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
Tarea
test

Swipe to show code editor

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 desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 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
Tarea
test

Swipe to show code editor

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 desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 9
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
We're sorry to hear that something went wrong. What happened?
some-alt