The expected output of the typeof operator, when applied to a String, is “string ”. JavaScript variables have different data types, and each data type has a different set of properties and methods. In the example above, const str is a String, and const num is a Number.
What is the output of typeof operator?
The expected output of the typeof operator, when applied to a String, is “string ”. JavaScript variables have different data types, and each data type has a different set of properties and methods. In the example above, const str is a String, and const num is a Number.