Web technologies Questions | JavaScript Course Quiz 1 | Question 9
What will be the output of the following code?
<script>let ans = 6 / "3";document.write(typeof ans);</script> |
(A) ‘integer’
(B) ‘string’
(C) ‘number’
(D) None of the above
Answer: (C)
Explanation: A number, when divided by a string, will always result in a number.
Quiz of this Question


