GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 12 von 15 · Medien

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?

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck