|
INTERVIEW QUESTIONS
WEB
JAVA SCRIPT
DETAILS
Question: How about 2+5+"8"?
Answer: Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it’s concatenation, so 78 is the result.
|
|
|
Category |
Java Script Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 8864 users |
Added on |
9/21/2014 |
Views |
69562 |
Rate it! |
|
|
Question:
How about 2+5+"8"?
Answer:
Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it’s concatenation, so 78 is the result. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What Web sites do you feel use JavaScript most effectively (i.e., best-in-class examples)? The worst?
|
View Answer
|
|
Taking a developer’s perspective, do you think that that JavaScript is easy to learn and use?
|
View Answer
|
|
Can JavaScript code be broken in different lines?
|
View Answer
|
|
What is a prompt box?
|
View Answer
|
|
What is the difference between an alert box and a confirmation box?
|
View Answer
|
|
How to access an external JavaScript file that is stored externally and not embedded?
|
View Answer
|
|
How to set the focus in an element using Javascript?
|
View Answer
|
|
How to determine the state of a checkbox using JavaScript?
|
View Answer
|
|
How to get the contents of an input box using JavaScript?
|
View Answer
|
|
What is the difference between a web-garden and a web-farm?
|
View Answer
|
|
What is the difference between RegisterClientScriptBlock and RegisterStartupScript?
|
View Answer
|
|
What are the ways to emit client-side JavaScript from server-side code in ASP. NET?
|
View Answer
|
|
What does "1"+2+4 evaluate to?
|
View Answer
|
|
What Boolean operators does JavaScript support?
|
View Answer
|
|
What are the problems associated with using JavaScript, and are there JavaScript techniques that you discourage?
|
View Answer
|
|
What and where are the best JavaScript resources on the Web?
|
View Answer
|
|
How to embed JavaScript in a web page?
|
View Answer
|
|
Are Java and JavaScript the Same?
|
View Answer
|
|
Is a JavaScript script faster than an ASP script?
|
View Answer
|
|
What does the "Access is Denied" IE error mean?
|
View Answer
|