Challenge: Determine Sizes with Conditionals
Task
Create a program that outputs "LARGE"
or "SMALL"
based on the given number:
- A number is considered large if it is greater than or equal to
100
. - A number is considered small if it is less than
100
. - You can assign any number to the variable
num
.
1234567let num = ___; ___ (num ___ ___) { console.log("___"); } ___ { console.log("___"); };
- Use the
if
andelse
keywords. - Utilize the
>=
comparison operator.
1234567let num = 100; if (num >= 100) { console.log("LARGE"); } else { console.log("SMALL"); };
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 4. Capítulo 4
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Awesome!
Completion rate improved to 2.33
Challenge: Determine Sizes with Conditionals
Deslize para mostrar o menu
Task
Create a program that outputs "LARGE"
or "SMALL"
based on the given number:
- A number is considered large if it is greater than or equal to
100
. - A number is considered small if it is less than
100
. - You can assign any number to the variable
num
.
1234567let num = ___; ___ (num ___ ___) { console.log("___"); } ___ { console.log("___"); };
- Use the
if
andelse
keywords. - Utilize the
>=
comparison operator.
1234567let num = 100; if (num >= 100) { console.log("LARGE"); } else { console.log("SMALL"); };
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 4. Capítulo 4