What will be the output of the following code?
< script>
let ans = 6 / “3”;
document.write ( typeof ans );
< /script>
(A)
None of the above
(B)
‘number’
(C)
‘integer’
(D)
‘string’
Answer: (B)
Explanation:
A number, when divided by a string, will always result in a number.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Recommended Articles