jump Index ScientificPsychic.com
Scientific Psychic
2013-11-11
 

Solitaire Game in JavaScript

Computer hacking has increased in recent years. Criminals can profit from the personal and financial information stolen from the victims they have hacked. In some cases, weaknesses in Java Applets have been exploited to infect computers with malware. Web browsers now warn users of the potential risk. The following discussion describes the differences between Java, Java Applets and JavaScript.

Java is a general programming language that can run on Windows, Linux or Mac computers regardless of computer architecture. This versatility is accomplished by converting the Java computer programs into bytecodes that are interpreted by a virtual machine. The Java Virtual Machine (JVM) is a computer program tailored for the specific hardware and operating-system platform. When you download Java software, the package contains the JVM and Java Plug-in software that enables browsers to execute Java Applets.

A Java Applet is a small application written in the Java language and stored as bytecodes. When a browser encounters a web page containing a Java Applet, the browser uses the Java Plug-in to decode the instructions indicated by the applet. The result is usually an interactive web page that the user can use to play a game or perform calculations. Weaknesses in the web browsers can be exploited by malicious Java applets, and for this reason some mobile browsers do not run Java applets at all, or they issue a security warning that asks for confirmation before allowing Java applets to be executed. The warnings may discourage users from using particular web pages even when they pose no danger. It is possible that in the future, browsers will not run Java Applets at all.



JavaScript is an interpreted computer programming language that is used by web browsers to interact with the user and control the display of the web page. Except for a similarity in the name, JavaScript is not related to the Java programming language. Although JavaScript can have some security problems, it does not have the vulnerabilities of Java Plug-ins. The use of JavaScript is now ubiquitous in many web applications such as Gmail and Google Maps that use Ajax (Asynchronous JavaScript and XML). The following links let you compare the implementation of a FreeCell Solitaire game implemented as a Java Applet and as a JavaScript application.

FreeCell Solitaire Java Applet

FreeCell Solitaire in JavaScript




© Copyright  - Antonio Zamora