Challenge: Declaring a Boolean Value
Task
Swipe to start coding
The given code contains a conditional expression which we have not studied yet, so you don't need to worry about understanding it right now.
The program displays:
The product is available.ifsAvailableistrue.The product is out of stock.ifisAvailableisfalse.
Your task is simple: declare a variable called isAvailable and set its value to true.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 12
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.35
Challenge: Declaring a Boolean Value
Swipe to show menu
Task
Swipe to start coding
The given code contains a conditional expression which we have not studied yet, so you don't need to worry about understanding it right now.
The program displays:
The product is available.ifsAvailableistrue.The product is out of stock.ifisAvailableisfalse.
Your task is simple: declare a variable called isAvailable and set its value to true.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 12
single