Skip to content
Related Articles

Related Articles

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?

let ans = 6 / "3";
document.write(typeof ans);

(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 :

Start Your Coding Journey Now!