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

Flashcards

Front end Js

Jose Arias Inglês 18 flashcards

Front end Js

Flashcards do conjunto (18)

  1. 1What is Debouncing?a method of preventing a function from being invoked too often, and instead waiting a certain amount of time until it was last called before invoking it.What is Debouncing?
  2. 2What is one definition for Closures?Closure is when a function remembers its lexical scope even when the function is excecuted outside that lexcial scope
  3. 3What is one definition for Closures?When a function references a variable outside of itself , and then that function goes to some other scope and executes and it still has acces to that var.
  4. 4What is an example for a closureThe settimeout has access to bar, even when executed later in the program when the original scope is goneWhat is an example for a closure
  5. 5what is HoistingHoisting it´s a shorthand to describe variables belong to their enclosing functions.
  6. 6What do people think "Hoisting" means as a metaphorVariable declarations move to the top of the scopeWhat do people think "Hoisting" means as a metaphor
  7. 7Name a way to decrease page loadOptimize images
    *Gif for images with few colors like logos
    *JPEG images with colors and details
    *PGN high quality transparent img
  8. 8Name a way to decrease page loadMinify CSS, JavaScript, and HTML.
  9. 9What are Higher-Order Functions in JSA “higher-order function” is a function that accepts functions as parameters and/or returns a function.
  10. 10what is a callbackA function passed as an argument to another function
    The benefit of using a callback function is that you can wait for the result of a previous function call and then execute another function call.
  11. 11What is the difference between an expression and a statementAn expression is a bit of JavaScript code that produces a value.
    A statement is an instruction for the computer to do something.
  12. 12What are statements (examples)Values, Operators, Expressions, Keywords, and Comments.
  13. 13What is a callbackA function passed as an argument to another function, when the first is done, the callback executes
    A setTimeOut is an example of a callback
  14. 14What is a PromiseA promise is an object .
    It has 3 states: 1-pending, 2-resolved, 3-rejected
    contains both the producing code and calls to the consuming code:
  15. 15What is Async/AwaitSyntactic sugar for promises
    If the word ASYNC comes before a function, that function returns a promise
    The AWAIT makes js wait until that promise
    returns a result
  16. 16What is a function declarationa normal function that hoists
    function salute(name) {
    return `Hi, my name is ${name}`
    }
  17. 17What is a function ExpressionA function that is assigned to a variable that can be called.
    const salute = function(name) {
    return `Hi, my name is ${name}`
    }
  18. 18—

Informações

Descrição
FlashCards sobre Front end Js, criado por Jose Arias em 11-10-2023.
Criado por
Jose Arias
Visualizações
0
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?