¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 12 de 15 · Multimedia

Different types

Kostas Diakogiannis

Different types

The 'Typeof' keyword

 

JS gives us the opportunity to check for the type of data of every data structure when we want.

This is done by the typeof keyword and is followed by the value. The returned value is the name of the type of the value. For example 'string', or 'number' etc.

ex. console.log(typeof 10); // returns "number"

Bring the last exercise with the 3 different concatenations, but modify the code in such a way, so you print the type of the result instead of the result itself. What can you see?

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?