Home | About Us | Contact Us | Terms Of Use
JavaScript is a script language - a system of programming codes, created by Netscape, that can be embedded into the HTML of a web page to add functionality. JavaScript should not be confused with the Java programming language. In general, script languages such as JavaScript are easier and faster to code than more structured languages such as Java and C++.
JavaScript Interviews are getting tough these days as the technology grows faster. To get through the JavaScript interview one needs to update him/herself in a regular manner. Having said that, just before the interview, it is very important to have a quick glance of the reputed JavaScript questions and answers to make yourself comfortable during the interview process. This is where DoAnswers.com helps you in renewing yourself on JavaScript and various other technologies interview preparation.
21. What is JavaScript?
JavaScript is a platform-independent,event-driven, interpreted client-side scripting and programming language developed by Netscape Communications Corp. and Sun Microsystems.
22. What is negative infinity?
It?s a number in JavaScript, derived by dividing negative number by zero.
23. What is this keyword?
It refers to the current object.
24. What looping structures are there in JavaScript?
for, while, doAnswer:while loops, but no foreach.
25. What?s a way to append a value to an array?
arr[arr.length] = value;
26. What?s relationship between JavaScript and ECMAScript?
Answer: ECMAScript is yet another name for JavaScript (other names include LiveScript). The current JavaScript that you see supported in browsers is ECMAScript revision 3.
27. where abc.js is the external javscript file to be accessed. What is the difference between an alert box and a confirmation box?
An alert box displays only one button which is the OK button whereas the Confirm box displays two buttons namely OK and cancel.
28. Where are cookies actually stored on the hard disk?
This depends on the user's browser and OS. In the case of Netscape with Windows OS,all the cookies are stored in a single file called cookies.txt c:\Program Files\Netscape\Users\username\cookies.txt In the case of IE,each cookie is stored in a separate file namely username@website.txt. c:\Windows\Cookies\username@Website.txt