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:

Quiz de Gestión de Héroes

Quiz

Played 1

About this activity

Conceptos clave de estado y clases

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
Quiz de Gestión de Héroes
 

Quiz de Gestión de HéroesOnline version

Conceptos clave de estado y clases

by Danna sanchez
1

¿Qué tipo de dato es estadoApp?

2

¿Qué propiedades tiene estadoApp y para qué sirve cada una?

3

¿Dónde se carga inicialmente el array heroes?

4

¿Qué pasa si en localStorage no hay nada guardado?

5

¿Qué hace || [] en obtenerHeroes()?

6

¿Qué hace el constructor de Hero?

7

¿Qué es this en la clase?

8

¿Por qué habilidades = [] tiene un valor por defecto?

9

¿Cómo se genera el id?

10

¿Qué pasa si no se llama gestionar guardar tras subir nivel?

Explicación

estadoApp típicamente es un objeto que agrupa propiedades y métodos.

Estas propiedades permiten almacenar héroes, gestionar guardado y registrar cuándo se creó el estado.

Se recupera del almacenamiento del navegador si existe.

Se inicializa con un arreglo para permitir operaciones posteriores.

El operador devuelve [] cuando obtenerHeroes() no devuelve un arreglo.

Configura las propiedades necesarias de cada héroe.

En métodos de instancia, this apunta al héroe concreto.

Un arreglo por defecto facilita operaciones posteriores.

Combina marca temporal con distribución aleatoria para unicidad.

Sin salvar, los cambios no persisten entre sesiones.

Are you sure you want to leave the page?

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