Lenguaje técnico Flashcards
How do you say: “Esa función se pasa dentro de otra”
That function is being passed into another function.
Correct this: “I can definitely running”
I can definitely run it.
How do you ask: “¿Cuál sería una mejor solución?” en inglés natural
What would be a better solution?
Correct this: “You could pass here a parameter”
You could pass a parameter here.
What’s a better way to say: “Voy a descomentar todo”
I’m gonna completely uncomment it.
What’s a higher-order function? (define it simply)
A function that takes another function as a parameter or returns one.
Example sentence with “callback function”
We need to use this callback function in another block of code.
Fix this: “This is a high order function”
This is a higher-order function.
How do you say: “No deberías invocar esa función directamente”
You shouldn’t invoke that function directly.
Phrase you can use in a standup: “Hoy estudié funciones de orden superior”
Today I reviewed higher-order functions and practiced callbacks.
What does an async function return?
A promise
Complete: You can only use await inside an ___ function
async
Fix this sentence: “You need to wrapped the function.”
You need to wrap the function.
What’s the cleaner alternative to .then().then().catch()?
Using async/await with try/catch
What’s wrong with: “a async function”?
It should be an async function.
Translate this idea: “Donde más puedo usar async/await?”
Where else can I use async/await?
What’s the English term for a function that takes another function?
A higher-order function
Fill the gap: This function is being passed ___ another one
into
Correct this: “Can making easier to understand”
Can make it easier to understand
You’re writing a fetch call with async/await. How do you handle errors?
Use a try/catch block around the await call.