Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Declaring a Boolean Value | Section
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
JavaScript Essentials for Beginners - 1768407374405

bookChallenge: Declaring a Boolean Value

Tâche

Swipe to start coding

The given code contains a conditional expression which we have not studied yet, so you don't have to worry about understanding it right now.

The code represents a program which displays "The product is available" if the variable isAvailable is true, otherwise it displays "The product is out of stock.".

Declare a new variable called isAvailable which is set to true.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 26
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Declaring a Boolean Value

Glissez pour afficher le menu

Tâche

Swipe to start coding

The given code contains a conditional expression which we have not studied yet, so you don't have to worry about understanding it right now.

The code represents a program which displays "The product is available" if the variable isAvailable is true, otherwise it displays "The product is out of stock.".

Declare a new variable called isAvailable which is set to true.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 26
single

single

some-alt