PrepAway - Latest Free Exam Questions & Answers

Which statement will return the mathematical sum of these variables?

Suppose you define two variables as follows:
var x = 5;
var y = “5”;
Which statement will return the mathematical sum of these variables?

PrepAway - Latest Free Exam Questions & Answers

A.
alert(x + int(y));

B.
alert(x + parseInt(y));

C.
alert(x + y);

D.
alert((int)x + (int)y);

Explanation:


Leave a Reply