JavaScript
introduction
What Web scripting is?
How scripting and programming are different (and similar)
What JavaScript is?
JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer,
Firefox, Chrome, Opera, and Safari.
What is scripting language?
◦ A high-level programming language that is interpreted by another program at runtime.
◦ Scripting languages, which can be embedded within HTML, commonly are used to add functionality to a Web page, such as different menu styles or graphic displays or to serve dynamic advertisements.
◦ These types of languages are client or server-side scripting languages, affecting the data that the end user sees in a browser window.
What is JavaScript?
JavaScript was designed to add interactivity to HTML pages
JavaScript is a scripting language
JavaScript is usually embedded directly into
HTML pages
JavaScript is an interpreted language
(means that scripts execute without preliminary compilation)
Everyone can use JavaScript without purchasing a license
What can a JavaScript do?
JavaScript gives HTML designers a programming tool
JavaScript can put dynamic text into an
HTML page
JavaScript can be used to automate and validate data
JavaScript can be used to detect the visitor's browser
JavaScript can be used to create cookies
Add scrolling or changing messages to the browser’s status line.
Display messages to the user, either as part of a Web page or in alert boxes.
Animate images or create images that change when you move the mouse over them. Create ad banners that interact with the user, rather than simply displaying a graphic. Detect the browser in use and display different content for different browsers.
JavaScript = ECMAScript
JavaScript is an implementation of the ECMAScript language standard.
ECMAScript is developed and maintained by the
ECMA organization.
ECMA-262 is the