Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Determine Sizes with Conditionals | Controlling Program Flow with Conditional Statements
Introduction to JavaScript

bookChallenge: Determine Sizes with Conditionals

Task

Create a program that outputs "LARGE" or "SMALL" based on the given number:

  1. A number is considered large if it is greater than or equal to 100.
  2. A number is considered small if it is less than 100.
  3. You can assign any number to the variable num.
1234567
let num = ___; ___ (num ___ ___) { console.log("___"); } ___ { console.log("___"); };
copy
  1. Use the if and else keywords.
  2. Utilize the >= comparison operator.
1234567
let num = 100; if (num >= 100) { console.log("LARGE"); } else { console.log("SMALL"); };
copy

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 4. Capítulo 4

Pergunte à IA

expand

Pergunte à IA

ChatGPT

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

bookChallenge: Determine Sizes with Conditionals

Task

Create a program that outputs "LARGE" or "SMALL" based on the given number:

  1. A number is considered large if it is greater than or equal to 100.
  2. A number is considered small if it is less than 100.
  3. You can assign any number to the variable num.
1234567
let num = ___; ___ (num ___ ___) { console.log("___"); } ___ { console.log("___"); };
copy
  1. Use the if and else keywords.
  2. Utilize the >= comparison operator.
1234567
let num = 100; if (num >= 100) { console.log("LARGE"); } else { console.log("SMALL"); };
copy

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 4. Capítulo 4
some-alt