Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

Web technologies Questions | JavaScript Course Quiz 1 | Question 9

  • Last Updated : 18 Apr, 2019

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :