Skip to content
Related Articles

Related Articles

Improve Article

Aptitude | JavaScript Course Quiz 3 | Question 7

  • Last Updated : 10 May, 2019

What will be the output of the following code?




<script>
  document.write(String('Hello') == 'Hello');
</script>

(A) true
(B) false
(C) 1
(D) 0


Answer: (A)

Explanation: They are equal because both of them are strings.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :