Without Book Interview Questions and Answers | Online Test | Moct Test
Register Now and Challenge Friend's Result
Take a Tour
Search by Name or Email Play Games Questions Forum
Login | Join Now
Ask Question

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

JavaScript Interview Questions and Answers

Ques 6. What boolean operators does JavaScript support?

Ans. &&, || and !
Is it helpful? Yes No Add Comment View Comments

Ques 7. What does "1"+2+4 evaluate to?

Ans. Since 1 is a string, everything is a string, so the result is 124.
Is it helpful? Yes No Add Comment View Comments

Ques 8. How about 2+5+"8"?

Ans. Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it's concatenation, so 78 is the result.
Is it helpful? Yes No Add Comment View Comments

Ques 9. What looping structures are there in JavaScript?

Ans. for, while, do-while loops, but no foreach.
Is it helpful? Yes No Add Comment View Comments

Ques 10. How do you create a new object in JavaScript?

Ans. var obj = new Object(); or var obj = {};
Is it helpful? Yes No Add Comment View Comments

Most helpful rated by users:

©2014 WithoutBook