JavaScript Questions
JavaScript Interview Questions
1. Ques: JavaScript can only run on Windows.
Answer : No
2. Ques: what are the basic data types in javascript:
Answer : strings, numbers, Booleans, and nulls
3. Ques: To comment out a line in JavaScript .
Answer : Precede it with two forward slashes, i.e. ‘//’
4. Ques: Is javascript object oriented language
Answer : No, It is object based.
5. Ques: Can Javascript interact with Database and local files.
Answer : No.
6. Ques: Can javascript print the document.
Answer : yes. use document.print()
7. Ques: Is javascript open to public.
Answer : Yes
8. Ques: What is use of javascript?
Answer : Javascript can help to read the data from tag, and give the power to html by providing programming tool. and can validate form on client side. and also help to response the event if it occurs in browser.
9. Ques: What property would you use to redirect a visitor to another page?
Answer :. window.location.href
10. Ques: What are methods from global object
Answer : eval(), parseInt(), parseFloat(), isFinite(), isNAN() etc.
Recent Comments