O GoConqr está de visual novo! Conte para nós o que você achou.

Flashcards

Data Types and Conditionals

Lucas Bastos Javascript Técnico Português 17 flashcards

Flashcards do conjunto (17)

  1. 1What are the eight data types in JavaScript?Number, String, Boolean, Object, Function, Synbol, BigInt and Undefined
  2. 2Which data type is NOT primitive?Object
  3. 3What is the relationship between null and undefined?They're equally false but have different meanings
  4. 4What is the difference between single, double, and backtick quotes for strings?There is no functional difference between single and double quotes for strings. Backtick quotes (`) allow for variable interpolation using ${} and also support multiline strings.
  5. 5What is the term for joining strings together?Concatenation
  6. 6Which type of quote lets you embed variables/expressions in a string?Backtick Quotes
  7. 7How do you embed variables/expressions in a string?Using interpolation ${variable} inside the backtick quotes
  8. 8How do you use escape characters in a string?Using backslash (\) before the character to escape it
  9. 9What is the difference between the slice/substring string methods?In substring method, values less than 0 are treated as 0, while in slice method, negative values count from the end of the string
  10. 10What are the three logical operators, and what do they stand for?&& = and: return true if both operands are true
    || = or: return true if at least one operand is true
    ! = not: return true if the operand is false, or false if the operand is true
  11. 11What are the comparison operators?>
    >=
    <
    <=
    ==
    ===
  12. 12What are truthy and falsy values?false, 0, empty string "", null, undefined, NaN
    All other values are considered truthy
  13. 13What are conditionals?Conditionals are statemenets that execute blocks of code based on true or false conditions
  14. 14What is the syntax for an if/else conditional?if (condition) {
    // do something
    } else {
    // do something else
    }
  15. 15What is the syntax for a switch statement?switch (variable) {
    case A:
    // do something
    break;
    case B:
    // do something
    break;
    // ...
    default:
    // do something
    // break optional
    }
  16. 16What is the syntax for a ternary operator?conditional ? do something : do something else
  17. 17What is nesting?Nesting is a technique in programming where you place code structures inside other code structures, making the organization and visualization of the code easier

Informações

Descrição
Técnico Javascript FlashCards sobre Data Types and Conditionals, criado por Lucas Bastos em 10-10-2024.
Criado por
Lucas Bastos
Visualizações
1
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?