Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

JavaScript Interview Questions and Answers

Test your skills through the online practice test: JavaScript Quiz Online Practice Test

Related differences

Ques 46. What is a prompt box?

A prompt box allows the user to enter input by providing a text box.

Is it helpful? Add Comment View Comments
 

Ques 47. Can javascript code be broken in different lines?

Breaking is possible within a string statement by using a backslash \ at the end but not within any other javascript statement.
that is ,
document.write("Hello \ world");
is possible but not document.write \
("hello world");

Is it helpful? Add Comment View Comments
 

Ques 48. To put a "close window" link on a page?

<a href='javascript:window.close()' class='mainnav'> Close </a>

Is it helpful? Add Comment View Comments
 

Ques 49. How to hide javascript code from old browsers that dont run it?

Use the below specified style of comments

©2024 WithoutBook
JavaScript vs JqueryJavaScript vs VBScriptJavaScript vs TypeScript