You are not logged in.

#1 2017-12-08 05:06:54

hamidoon123
Moderator
Registered: 2017-09-21
Posts: 50,766

What is the output of this expression? x = 2 + "2"; document.writ...

Software Engineering Exams Quizzes MCQs Quizzes JavaScript Online MCQs Test

Question:
What is the output of this expression? x = 2 + "2"; document.write(x)?

Option A):
2
Option B):
Syntax Error
Option C):
4
Option D):
22

Correct Answer is Option D):
22

2017-12-08 05:06:54

Advertisement
Ads By Google

Re: What is the output of this expression? x = 2 + "2"; document.writ...



Board footer