Podcast
Questions and Answers
¿Cuál de las siguientes afirmaciones sobre JavaScript es correcta?
¿Cuál de las siguientes afirmaciones sobre JavaScript es correcta?
- Es un lenguaje orientado a componentes y fuertemente tipado.
- Es un lenguaje interpretado y débilmente tipado. (correct)
- Es un lenguaje compilado que requiere un compilador dedicado.
- Es un lenguaje que solo se usa para programación del lado del servidor.
¿Qué operador se utiliza para comparar tanto el valor como el tipo en JavaScript?
¿Qué operador se utiliza para comparar tanto el valor como el tipo en JavaScript?
- ==
- !=
- !==
- === (correct)
¿Cuál es el propósito de una promesa en JavaScript?
¿Cuál es el propósito de una promesa en JavaScript?
- Almacenar datos temporales en el código.
- Crear un objeto de función autoejecutable.
- Representar una operación sin posible error.
- Representar la eventual finalización o falla de una operación asíncrona. (correct)
¿Cómo se declara una variable que no cambiará su valor en JavaScript moderno?
¿Cómo se declara una variable que no cambiará su valor en JavaScript moderno?
¿Qué método se utiliza para agregar un elemento al final de un array en JavaScript?
¿Qué método se utiliza para agregar un elemento al final de un array en JavaScript?
¿Qué devuelve 'console.log(typeof [])' en JavaScript?
¿Qué devuelve 'console.log(typeof [])' en JavaScript?
¿Qué es el 'hoisting' en JavaScript?
¿Qué es el 'hoisting' en JavaScript?
¿Qué hace el método Array.prototype.map()?
¿Qué hace el método Array.prototype.map()?
¿Cuál es la función de la clase mt en CSS?
¿Cuál es la función de la clase mt en CSS?
¿Qué método devuelve el índice del primer elemento de un array que cumple una condición?
¿Qué método devuelve el índice del primer elemento de un array que cumple una condición?
¿Qué hace el método includes en un array o string?
¿Qué hace el método includes en un array o string?
¿Qué representa localStorage en el navegador?
¿Qué representa localStorage en el navegador?
¿Cuál es la función de JSON.stringify()?
¿Cuál es la función de JSON.stringify()?
¿Qué significa CORS en el contexto de la seguridad web?
¿Qué significa CORS en el contexto de la seguridad web?
¿Qué hace el método reduce en un array?
¿Qué hace el método reduce en un array?
¿Qué hace button.classList.toggle('active')?
¿Qué hace button.classList.toggle('active')?
¿Qué describe mejor el concepto de 'Server-Side Rendering' (SSR)?
¿Qué describe mejor el concepto de 'Server-Side Rendering' (SSR)?
¿Cuál es la característica principal de la arquitectura de microservicios?
¿Cuál es la característica principal de la arquitectura de microservicios?
¿Qué función principal tiene 'webpack' en el desarrollo web moderno?
¿Qué función principal tiene 'webpack' en el desarrollo web moderno?
¿Qué permiten los 'hooks' en el entorno de React?
¿Qué permiten los 'hooks' en el entorno de React?
¿Qué representa el concepto de 'TDD' en el desarrollo de software?
¿Qué representa el concepto de 'TDD' en el desarrollo de software?
¿Cuáles son los beneficios del 'sharding' en bases de datos?
¿Cuáles son los beneficios del 'sharding' en bases de datos?
¿Qué es un 'JWT' en el contexto de la autenticación web?
¿Qué es un 'JWT' en el contexto de la autenticación web?
¿Cuál es la descripción correcta de un 'deadlock' en programación?
¿Cuál es la descripción correcta de un 'deadlock' en programación?
¿Qué resultado devuelve el método Array.prototype.reduce()?
¿Qué resultado devuelve el método Array.prototype.reduce()?
¿Qué característica define a un closure en JavaScript?
¿Qué característica define a un closure en JavaScript?
¿Cuál es la principal finalidad del patrón de módulo en JavaScript?
¿Cuál es la principal finalidad del patrón de módulo en JavaScript?
¿Qué evento se dispara cuando un documento HTML ha sido completamente cargado y parseado?
¿Qué evento se dispara cuando un documento HTML ha sido completamente cargado y parseado?
¿Cuál es el propósito de la directiva 'use strict' en JavaScript?
¿Cuál es el propósito de la directiva 'use strict' en JavaScript?
¿Cómo se define una arrow function en JavaScript?
¿Cómo se define una arrow function en JavaScript?
¿Cuál de las siguientes afirmaciones es cierta acerca de AJAX?
¿Cuál de las siguientes afirmaciones es cierta acerca de AJAX?
¿Cuál es la función del método forEach en un array?
¿Cuál es la función del método forEach en un array?
¿Qué describe mejor un deadlock en programación concurrente?
¿Qué describe mejor un deadlock en programación concurrente?
¿Qué es A/B testing en el desarrollo web?
¿Qué es A/B testing en el desarrollo web?
¿Qué permite CORS en el contexto de las solicitudes de recursos?
¿Qué permite CORS en el contexto de las solicitudes de recursos?
¿Qué define una vulnerabilidad de SQL injection?
¿Qué define una vulnerabilidad de SQL injection?
¿Qué significa PWA en el contexto del desarrollo web moderno?
¿Qué significa PWA en el contexto del desarrollo web moderno?
¿Cuál de las siguientes afirmaciones describe correctamente un 'service worker'?
¿Cuál de las siguientes afirmaciones describe correctamente un 'service worker'?
¿Cuál es la función principal del patrón MVC en la arquitectura de software?
¿Cuál es la función principal del patrón MVC en la arquitectura de software?
¿Qué caracteriza a una función 'pure' en programación funcional?
¿Qué caracteriza a una función 'pure' en programación funcional?
¿Qué mide el 'Time to Interactive' (TTI) en el rendimiento web?
¿Qué mide el 'Time to Interactive' (TTI) en el rendimiento web?
¿Qué es una media query en CSS?
¿Qué es una media query en CSS?
¿Cómo se utiliza una media query para dirigirse a dispositivos móviles?
¿Cómo se utiliza una media query para dirigirse a dispositivos móviles?
¿Cómo se define una transacción en el contexto de las bases de datos?
¿Cómo se define una transacción en el contexto de las bases de datos?
¿Qué significa min-width y max-width en una media query?
¿Qué significa min-width y max-width en una media query?
¿Qué es el patrón de diseño 'Singleton'?
¿Qué es el patrón de diseño 'Singleton'?
¿Cuál es la principal ventaja del módulo de diseño 'flexbox' en CSS?
¿Cuál es la principal ventaja del módulo de diseño 'flexbox' en CSS?
¿Qué describe mejor el 'Server-Side Rendering' (SSR)?
¿Qué describe mejor el 'Server-Side Rendering' (SSR)?
Flashcards
¿Qué es una variable en JavaScript moderno?
¿Qué es una variable en JavaScript moderno?
En JavaScript moderno, se recomienda usar 'let' para variables que cambian y 'const' para las que no.
¿Qué hace el operador '==='?
¿Qué hace el operador '==='?
Compara valor y tipo de los operandos, diferente a '==', que solo compara el valor.
¿Qué es una promesa (Promise)?
¿Qué es una promesa (Promise)?
Representa la finalización o fracaso de una operación asíncrona, manejando resultados futuros.
¿Qué es JSON?
¿Qué es JSON?
Signup and view all the flashcards
¿Qué es "fetch" en JavaScript?
¿Qué es "fetch" en JavaScript?
Signup and view all the flashcards
¿Qué es Array.prototype.map()
?
¿Qué es Array.prototype.map()
?
Signup and view all the flashcards
¿Qué método agrega un elemento al final de un array?
¿Qué método agrega un elemento al final de un array?
Signup and view all the flashcards
¿Qué es el hoisting en JavaScript?
¿Qué es el hoisting en JavaScript?
Signup and view all the flashcards
¿Qué hace reduce()
?
¿Qué hace reduce()
?
Signup and view all the flashcards
¿Qué es closure
?
¿Qué es closure
?
Signup and view all the flashcards
¿Qué es el patrón de módulo?
¿Qué es el patrón de módulo?
Signup and view all the flashcards
¿Qué es el DOM?
¿Qué es el DOM?
Signup and view all the flashcards
Evento DOMContentLoaded
Evento DOMContentLoaded
Signup and view all the flashcards
Evento load
Evento load
Signup and view all the flashcards
Arrow function
Arrow function
Signup and view all the flashcards
use strict
use strict
Signup and view all the flashcards
Clase mt
Clase mt
Signup and view all the flashcards
Otras clases de márgenes
Otras clases de márgenes
Signup and view all the flashcards
Atributos min y max
Atributos min y max
Signup and view all the flashcards
Método findIndex()
Método findIndex()
Signup and view all the flashcards
Método find()
Método find()
Signup and view all the flashcards
Método includes()
Método includes()
Signup and view all the flashcards
Collapse en Bootstrap
Collapse en Bootstrap
Signup and view all the flashcards
Clase active
Clase active
Signup and view all the flashcards
CORS
CORS
Signup and view all the flashcards
'Service Worker'
'Service Worker'
Signup and view all the flashcards
Función 'Pure' (en programación funcional)
Función 'Pure' (en programación funcional)
Signup and view all the flashcards
'Time to Interactive' (TTI)
'Time to Interactive' (TTI)
Signup and view all the flashcards
Transacción (en bases de datos)
Transacción (en bases de datos)
Signup and view all the flashcards
Patrón de diseño 'Singleton'
Patrón de diseño 'Singleton'
Signup and view all the flashcards
'Flexbox' (en CSS)
'Flexbox' (en CSS)
Signup and view all the flashcards
'Server-Side Rendering' (SSR)
'Server-Side Rendering' (SSR)
Signup and view all the flashcards
Renderizado del lado del servidor (SSR)
Renderizado del lado del servidor (SSR)
Signup and view all the flashcards
Microservicios
Microservicios
Signup and view all the flashcards
Webpack
Webpack
Signup and view all the flashcards
Hooks en React
Hooks en React
Signup and view all the flashcards
Desarrollo Dirigido por Pruebas (TDD)
Desarrollo Dirigido por Pruebas (TDD)
Signup and view all the flashcards
Sharding
Sharding
Signup and view all the flashcards
JWT (JSON Web Token)
JWT (JSON Web Token)
Signup and view all the flashcards
Deadlock
Deadlock
Signup and view all the flashcards
Study Notes
JavaScript Study Notes
- JavaScript is an interpreted programming language, a dialect of ECMAScript.
- It's object-oriented, prototype-based, imperative, and dynamically typed.
- It's not compiled; however, it can be compiled Just-In-Time (JIT) in some engines.
- Modern JavaScript recommends using
let
for changing variables andconst
for unchanging ones. - Anonymous functions are functions without names, often assigned to variables or passed as arguments.
Variables and Operators
- The
===
operator compares both value and type of operands, unlike==
which only compares values.
Promises
- A promise in JavaScript represents the eventual completion or failure of an asynchronous operation.
- Promises allow elegant handling of future results.
- They resolve or reject when the operation is finished.
- A promise executes through its
then
method.
JSON
- JSON (JavaScript Object Notation) is a lightweight data-interchange format.
- It's human-readable and can be easily analyzed and generated by machines.
- It's commonly used for data exchange between systems.
Fetch API
fetch
is a method for asynchronous HTTP requests to get data from a server.
HTTP Methods (POST & GET)
GET
requests data from a server.POST
sends data to a server.
Arrays and console.log
output
- Arrays are considered objects in JavaScript.
typeof []
returns "object".- Use
push()
to add elements to the end of an array (returns the new length of the array).
Hoisting
- JavaScript's hoisting behavior moves variable and function declarations to the top of their scope.
Event Bubbling
- Event bubbling is a DOM event propagation method where an inner element's triggered event travels up the parent elements in the DOM tree.
Array.prototype.map()
- Creates a new array with the results of applying a function to each array element.
Array.prototype.reduce()
- Executes a reducer function (that you provide) on each element of the array, resulting in a single output value.
Closures
- A closure combines a function and its lexical environment.
- It allows a function to access variables from its outer scope, even after the outer function has finished.
Module Pattern
- A pattern for encapsulating related functionalities into a single object, providing privacy and organization.
DOM
- The Document Object Model (DOM) is a programming interface for HTML and XML documents.
- It represents the document as a tree of objects, allowing interaction and modification of the HTML structure.
- The DOM is an API.
DOMContentLoaded
Event
- This event fires when the initial HTML document has loaded and parsed completely.
load
Event
- The
load
event fires when everything (including images, scripts, and stylesheets) has finished loading.
Arrow Functions
- Arrow functions are a concise way to create functions in JavaScript and have lexically scoped behavior of
this
.
use strict
- Turning on strict mode for JavaScript using
use strict
enforces rules, leading to more secure and optimized code.
AJAX
- Asynchronous JavaScript and XML (AJAX) is a web development technique to update parts of a web page without reloading.
forEach
method
- Iterates over an array and applies a provided function to each element.
Event Listener (addEventListener
)
addEventListener
allows you to assign a function to be executed when a specific event occurs on an element.
Classes (e.g., mt
)
- CSS classes (
mt
,mb
,ml
,mr
, etc.) are used for applying margins. - They can be combined in a variety of ways to apply various margins.
findIndex
& find
Methods
findIndex
returns the index of the first element in an array that satisfies a provided testing function.find
returns the first element that satisfies a condition in an array.
includes
Method
- Verifies if a specified element exists in an array or string, returning
true
orfalse
.
collapse
Class
collapse
is a class (often used in frameworks like Bootstrap) that controls the visibility of an element (usually content) by switching classes in an animation.
classList.toggle("active")
- This toggles the presence of the
active
class on an element.
Local Storage
- Browser storage that lets you save key-value pairs persistently.
JSON.stringify() & JSON.parse()
JSON.stringify()
converts an object to a JSON string.JSON.parse()
converts a JSON string back to an object.
parseFloat
- Converts a string to a floating-point number.
this
Keyword
this
in JavaScript can refer to different objects depending on how the function is called.
reduce
Method
reduce
applies a function cumulatively to the array elements, reducing them to a single value.
Server-Side Rendering (SSR)
- In web development, server-side rendering is a technique of generating the HTML of a page on the server instead of the client-side JavaScript. Server-side rendering is often used to help performance.
Time To Interactive (TTI)
TTI
is the point where the web page has loaded and can respond to user interaction (visual rendering and responsiveness).
Transactions
- Database transactions ensure atomicity; either they complete fully or not at all, maintaining data consistency even during failures.
Singleton Pattern
- A design pattern that ensures that only one instance of a class can be created and provides global access to it.
Flexbox
- A CSS layout module that allows flexible and efficient layout by defining and controlling how items are positioned and aligned within a container.
Microservices
- An architectural style where an application is structured as a collection of loosely coupled services each handling a specific part of the functionality.
Webpack
- A module bundler for modern JavaScript applications that handles dependencies and creates bundles for consumption.
React Hooks
- Hooks give functional components in React access to features that were previously only possible in class components, with access to the state and lifecycle.
Test-Driven Development (TDD)
- A software development process where you write tests first, then implement the code to pass the tests.
Sharding
- A technique to divide databases into smaller chunks, called shards, to improve performance and scalability.
JSON Web Token (JWT)
- A compact and self-contained way to transmit information securely between parties, often used for authentication.
Deadlock
- A situation in concurrent programming where two or more processes freeze, each waiting for the other to release a resource.
A/B Testing
- A method for comparing two versions of a webpage to see which performs better.
SQL Injection
- A type of attack on web applications where an attacker inserts malicious SQL code into input fields.
Progressive Web Apps (PWAs)
- Applications that use web technologies and offer a native-like experience on mobile and desktop, with offline functionality and push notifications.
Model-View-Controller (MVC)
- A software design pattern that separates an application's concerns into separate modules. The Model manages the data and business logic, the View is the user interface, and the Controller manages user interactions and updates the model and view as needed.
Media Queries
- CSS rules that apply different styles based on the characteristics of the device or screen on which the page is being displayed, useful for responsiveness on different screen sizes.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
Este cuestionario evalúa tus conocimientos sobre JavaScript, incluyendo conceptos clave como variables, operadores y promesas. También abarca el uso de JSON como un formato de intercambio de datos. Ponte a prueba y mejora tu comprensión de esta popular lengua de programación.