Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Boolean 2/4 | Data Types and Variables
Introduction to JavaScript

bookBoolean 2/4

Boolean Data Type

We use the typeof operator to check the data type of variables, for example.

1234
let isRaining = true; console.log(typeof isRaining); // or like this console.log(typeof(isRaining));
copy

As you can see in the above code we declared a variable named isRaining with the value of true, and its data type is boolean as expected.

Tarefa

Swipe to start coding

Declare a variable with the name isSunRises and set its value as true. Then check the type of isSunRises by using typeof() and display the output.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 16
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

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

close

Awesome!

Completion rate improved to 2

bookBoolean 2/4

Deslize para mostrar o menu

Boolean Data Type

We use the typeof operator to check the data type of variables, for example.

1234
let isRaining = true; console.log(typeof isRaining); // or like this console.log(typeof(isRaining));
copy

As you can see in the above code we declared a variable named isRaining with the value of true, and its data type is boolean as expected.

Tarefa

Swipe to start coding

Declare a variable with the name isSunRises and set its value as true. Then check the type of isSunRises by using typeof() and display the output.

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!

close

Awesome!

Completion rate improved to 2
Seção 3. Capítulo 16
single

single

some-alt