![]() ![]() It determines what value the variable may take and what can be done with that value.įor example, a number type variable containing a numeric value can be used in arithmetic. The type of a variable determines what it can or can’t do. instanceof returns TRUE or FALSE when checking if a variable is of a certain type, whereas typeof returns the name of the type. The typeof operator is quite similar to the instanceof operator – but they do not function the same way. This article will explain JavaScript variable types and how to find the type of a variable using the typeof operator.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |