Java Script abelski Introduction © 2008 Haim Michael What is Java Script? Java Script is a scripting language running within the browser. Java Script appeared for the first time in 1995, as a scripting language supported by Netscape Navigator. JScript is Microsoft's variation for JavaScript. © 2008 Haim Michael ECMA Script In 1997 Java Script 1.1 was submitted to the European Computer Manufacturers Association (ECMA). ECMA Script, defined by ECMA-262, is the standard Java Script language. ECMA Script defines the very basic parts of the language, including the following: Syntax, Types, Statements, Keywords, Reserved Words, Operators and Objects. © 2008 Haim Michael ECMA Script Each browser implements ECMA Script in a different level. Some implements ECMA Script edition 1, some implements edition 2, some implements edition 3 and some implements edition 4. © 2008 Haim Michael HTML We can embed Java Script code within our HTML page using the <script> element. < script type=”text/javascript” > function do_something() { alert(“Good Morning!”); } < /script > We can have the Java Script code saved within a separated file the HTML shall refer to. < script type=”text/javascript” src=”mycode.js” > < /script > © 2008 Haim Michael HTML We usually place the <script> tag within the <head> element. <head> < script type=”text/javascript” > function do_something() { alert(“Good Morning!”); } < /script > </head> © 2008 Haim Michael IDEs We can develop simple code in JavaScript using a simple text editor. We can alternatively use an Integrated Development Environment, such as IntelliJ, Visual Studio, Eclipse and Netbeans. © 2008 Haim Michael IntelliJ IDEA This IDE is well known as a Java IDE. It is developed by JetBrains. Similarly to IntelliJ, other IDEs developed by JetBrains we can use include PHPStorm and WebStorm. © 2008 Haim Michael IntelliJ IDEA © 2008 Haim Michael Visual Studio The Visual Studio, developed by Microsoft, is well known for its qualities. We can easily use this IDE for coding in Java Script. © 2008 Haim Michael Visual Studio © 2008 Haim Michael Eclipse The Eclipse IDE was born as Java IDE. During the years it has evolved and today we can also use it to develop projects in other programming languages (e.g. PHP, Python, Scala). © 2008 Haim Michael Eclipse © 2008 Haim Michael.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages14 Page
-
File Size-