Suppose you define two variables as follows: var x = 5; var y = "5"; Which statement will return the mathematical sum of these variables?
A) alert(x + int(y) ) ;
B) alert(x + parseInt(y) ) ;
C) alert(x + y) ;
D) alert((int) x + (int) y) ;
Correct Answer:
Verified
Q1: Which script block will display Hello World
Q2: Consider the following code: Q3: Consider the following code: Q4: Which statement is true about the getElementByID() Q5: Which choice best defines events and event Q7: Consider the following code: Q8: Which statement about the JavaScript form object Q9: Consider the following code: Q10: Consider the following message displayed in a Q11: What is the purpose of the prototype Unlock this Answer For Free Now! View this answer and more for free by performing one of the following actions Scan the QR code to install the App and get 2 free unlocks Unlock quizzes for free by uploading documents