Answer:
typeof operator returns the data type of the data it acts upon
Explanation:
“typeof” is a operator in javascript which “returns” the “data type” of the given data.
For eg:
<script>
document.write(typeof “John” )
document.writeln(typeof new Date();
document.writeln(typeof 10+20);
document.writeln(typeof 20.4);
document.writeln(typeof function(){});
</script>
The above code is a sample javascript code to explain “typeof” operator. As per the program the first line returns “String”, second returns “date”, third line returns integer”, the next line returns “float” and the last line returns “function”. So, from this we can “conclude” that the “typeof” operator returns data type.