New game
Download
Get Academic Plan
Share game
Integrate it into your platform

You can integrate the game into an LMS compatible with LTI 1.1 or LTI 1.3 such as Canvas, Moodle, or Blackboard. This way, the scores will be automatically saved into the platform’s gradebook.
Download
You have exceeded the maximum number of games you can integrate into Google Classroom with your current Plan.

To integrate as many games as you want in Google Classroom, you need an Academic Plan or a Commercial Plan.

You have exceeded the maximum number of games you can integrate into Microsoft Teams with your current Plan.

To integrate as many games as you want in Microsoft Teams, you need an Academic Plan or a Commercial Plan.

Downloading games is an exclusive feature for users with an Academic Plan or a Commercial Plan.

Get your Academic Plan or your Commercial Plan now and start integrating your games into your LMS, website or blog.

If you wish, you can download a demo game here and test its integration:

Héroes en JS

Quiz

Played 1

About this activity

Quiz sobre el código de gestión de héroes

Created by

Argentina

Download the paper version to play

Make your own free game from our game creator
Compete against your friends to see who gets the best score in this game

Top Games

%
Anonymous
Anonymous
%
%
%
You have exceeded the maximum number of games you can print with your current Plan.

To print as many games as you want, you need an Academic Plan or a Commercial Plan.

Print your game
Héroes en JS
 

Héroes en JSOnline version

Quiz sobre el código de gestión de héroes

by Danna sanchez
1

¿Qué propiedad inicial no tiene valor en estadoApp al inicio?

2

¿Qué método crea un nuevo id para cada héroe?

3

¿Qué hace subirNivel() en la clase Hero?

4

¿Qué se añade al array habilidades al crear un héroe desde el formulario?

5

¿Qué guarda GestorHeroes en localStorage?

6

¿Qué acción realiza al hacer clic con acción 'subir'?

7

¿Qué hace la función renderHeroes()?

8

¿Qué evento dispara la carga de la API Rick and Morty?

9

¿Qué segmento de datos se muestra de la API tras cargar?

10

¿Qué ocurre al pulsar importar desde la API?

11

¿Dónde se define el objeto estadoApp?

Explicación

El estado inicial define error: null, no inicializa con un valor distinto.

El id se genera en el constructor de la clase Hero.

SubirNivel() incrementa la propiedad nivel en 1.

Se toma el texto de habilidades, se divide por comas y se asigna.

guardiaHeroes almacena el array en localStorage como 'heroes'.

La delegación detecta 'subir' y llama subirNivel().

Renderiza las tarjetas para cada héroe actual en estadoApp.heroes.

Al hacer clic en el botón con id cargarAPI se dispara fetch.

Se toman data.results.slice(0,3) para mostrar tres.

NuevoHeroe creado con nombre desde API y tipo 'Importado'.

Are you sure you want to leave the page?

If you leave the page, you will lose your game progress.