Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Web technologies Questions | JavaScript Course Quiz 2 | Question 9

  • Last Updated : 18 Apr, 2019

What will be the output of the following code?

  let y = 1;
  y = typeof x; 
  document.write(typeof y);

(A) string
(B) null
(C) number
(D) boolean

Answer: (A)

Explanation: typeof ‘undefined’ is a string and if we do typeof ‘string’ again it will be the same.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!