JavaScript typeof

Veröffentlicht am: 23 Juli 2025
auf dem Kanal: Jakubication
5
1

In JavaScript, the typeof operator returns a string representing the type of whatever operand you put to the right of typeof. Many of the base types have reasonable behavior with typeof. true and false are booleans. Numbers are numbers. Strings are strings. Functions are functions. undefined is of type undefined. Where it starts getting crazy is the type of null is object even though it is a primitive. The type of any non-primitive type that I have yet to mention is object. Even an array in JavaScript is of type object.

Further Reading On Why typeof null is "object" 👉 https://developer.mozilla.org/en-US/d...

#javascript #codingtutorial #learntocode


Auf dieser Seite können Sie das Online-Video JavaScript typeof mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Jakubication 23 Juli 2025 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 5 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!