Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Boolean 1/4 | Data Types and Variables
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Introduction to JavaScript (staging)

bookBoolean 1/4

What are Booleans Values

The boolean data type is either true or false. In programming, we often need to know if an expression (code snippet which evaluates to some value) is true or false so in that case, we use boolean values. In JavaScript, boolean variables are defined by the true and false keywords.

12
let isClear = true; console.log(isClear);
copy
Tarefa

Swipe to start coding

Declare a variable isEarthFlat and assign the value false to it. Display the value on the console.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 15
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Suggested prompts:

Can you explain how booleans are used in conditional statements?

What are some common use cases for boolean values in programming?

Can you show how to change a boolean variable's value?

close

bookBoolean 1/4

Deslize para mostrar o menu

What are Booleans Values

The boolean data type is either true or false. In programming, we often need to know if an expression (code snippet which evaluates to some value) is true or false so in that case, we use boolean values. In JavaScript, boolean variables are defined by the true and false keywords.

12
let isClear = true; console.log(isClear);
copy
Tarefa

Swipe to start coding

Declare a variable isEarthFlat and assign the value false to it. Display the value on the console.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 15
single

single

some-alt