MCQs > IT & Programming > JavaScript > What's the output? s2 = new String('2 + 2') document.write(eval(s2));

JavaScript MCQs

What is the output of the following JavaScript code?

s2 = new String("2 + 2")
document.write(eval(s2));


Answer

Correct Answer: 2+2

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it