JAVASCRIPT interview que and ans

Back
What's the difference between JavaScript and Java?
The main difference between these two computer languages is that javascript functions within the web browser while java functions outside of the browser, using its own specific file types. Don't let this distinction confuse you, though. The latest versions of the browsers have java runtime engines built into them so that java applets can play within the browser window, similarly to how a plug-in works. But even though a web browser can run a java applet within its window, it doesn't hold all of the code for the applet in the HTML page, the way that a javascript works. A java applet only includes bits of code within the HTML source to call functions and libraries that reside outside of the HTML source. Conversely, all of the javascript code is contained in the HTML of the page where the javascript executes.

Do you think that that JavaScript is easy to learn and use?
One of the reasons JavaScript has the word "script" in it is that as a programming language, the vocabulary of the core language is compact compared to full-fledged programming languages. If you already program in Java or C, you actually have to unlearn some concepts that had been beaten into you.
For example: JavaScript is a loosely typed language, which means that a variable doesn't care if it's holding a string, a number, or a reference to an object; the same variable can even change what type of data it holds while a script runs

Is a javascript script faster than an ASP script?
Yes.Since javascript is a client-side script it does require the web server's help for its computation,so it is always faster than any server-side script like ASP,PHP,etc

How to read and write a file using javascript?
I/O operations like reading or writing a file is not possible with client-side javascript. However , this can be done by coding a Java applet that reads files for the script.

Share your requirement with me and give your business a much needed thrust.
CONTACT HERE