8.17.2012

JavaScript Difference FAQs-1

1.Difference between PHP and JavaScript
S.No
PHP
JavaScript
1
PHP runs on server and the major functionality of PHP is to produce the HTML code which will be read by browser.
JavaScript can handle only local tasks that are specific.
2
In PHP, code will be available only after the server interprets it.
In JavaScript the code can be viewed even after the output is interpreted.
3
PHP is embedded only with HTML and PHP cannot be combined with XML.
JavaScript can be combined with HTML, XML and AJAX.
4
PHP is used to produce web pages on the go, read and deploy databases, import the files available on the server, and gain files of data from further domains.
JavaScript can import files of information available by mentioning the URL of the file in the address bar of the browser.
5
PHP does not execute within a browser’s window.
JavaScript executes within a browser’s window.
6
PHP commonly uses MYSQL as a database.
MYSQL is not commonly used by JavaScript.

2.Difference between JScript and JavaScript
S.No
JScript
JavaScript
1
JScript is released by Microsoft.
JavaScript is released by Netscape in partnership with Sun Microsystems
2
JScript is reverse engineered from Javascript by Microsoft in order to have its own ECMAScript language.
JavaScript is a newly formed language.
3
Microsoft’s JScript is a language openly implemented on the lines of Netscape’s JavaScript.
JavaScript is a language independent of the Java language of Sun Microsystems.
4
JScript is used for creating active and also online content for WWW.
JavaScript is used for developing client applications and server applications.
5
All versions of JScript have access to ActiveX objects.
Very few versions of JavaScript have access to ActiveX objects.

3.Difference between Java and JavaScript
S.No
Java
JavaScript
1
Java is termed as an Object Oriented Programming language.
JavaScript is a Scripting Language.
2
Java was originally created by James Gosling belonging to Sun Microsystems.
Netscape,Inc. has developed the JavaScript programming language.
3
Standalone applications and applets are created by Java programming language.
Standalone applications or applets are not created by JavaScript.
4
Java is known for the creation of applications that can run on a browser but it does not always require a browser for program execution.
JavaScript code always needs a browser for its execution.
5
Java code can survive on its own as a stand alone Java Program.
JavaScript should be placed through a HTML document for its functioning.
6
Java code should always be compiled.
JavaScript code is always in text and it does not need compilation process.

No comments:

Post a Comment