GoConqr has a new look! Let us know what you think.

Module 12 of 15 · Media

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?

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?