How about 2+5+"8"?

Answer Posted / madhu

int + int + String = int + String = String
2 + 5 + "8" = 7 + "8" = "78"

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the instanceof operator in JavaScript?

510


Explain typecasting in javascript?

486


How do I turn on javascript in google chrome?

565


What is global variable in javascript?

503


What is difference between promise and callback?

484






How to find the selected radio button immediately using the 'this' variable?

518


Who introduced javascript?

496


Write a Program using Servlet and JDBC for developing online application for displaying the details of Cars owned by the residents in XYZ society. Make necessary assumptions and create appropriate databases

1839


How to determine the state of a checkbox using javascript?

623


Which companies are using node js?

441


How do you check if a string is a number javascript?

474


Does javascript have the concept level scope?

582


What is arguments object in JavaScript?

564


How do you target a specific frame from a hyperlink?

495


What is an example of javascript?

449