Lecture 2 Reviewer Flashcards
Javascript is a ___ computer programming language.
dynamic
It is lightweight and most commonly used as a part of web pages, whose implementations allow…
client-side script to interact with the user and make dynamic pages; Javascript
It is an interpreted programming language with object-oriented capabilities.
Javascript
JS was first known as ___, but Netscape changes its name to JavaScript, possibly because of the excitement being generated by Java.
LiveScript
JS made its first appearance in ___ with the name LiveScript.
Netscape 2.0 in 1995
The ___ of the language has been embedded in Netscape, Internet Explorer, and other web browsers.
general-purpose core
The ___ defined a standard version of the core JavaScript language.
ECMA-262 Specification
JS is a ___, ___ programming language.
lightweight; interpreted
Designed for creating ___ applications.
network-centric; JavaScript
Complementary to and integrated with ___.
Java; JS
Complementary to and integrated with ___(2).
HTML
Open and cross-platform
JS
___ is the most common form of the language
Client-side JS
The script should be … for the code to be interpreted by the browser.
included in or references by an HTML document
It means that a web page need not be a static HTML, but can include programs that ___ (1), ___ (2), and ___ (3).
interact with the user; control the browser; dynamically create HTML content
The JS client-side mechanism provides many advantages over ___.
traditional CGI server-side scripts
you might use ___ to check if the user has entered a valid e-mail address in a form field
JS
The JS code is executed when the user submits the form, and only if ___, they would be submitted to the web server.
all the entries are valid
JavaScript can be used to trap ___ events such as button clicks, link navigation, and other actions that the ___.
user-initiated; user initiates explicitly or implicitly
Advantages of JavaScript
1 Less server interaction
2 Immediate feedback to the visitor
3 Increased interactivity
4 Richer interfaces
Advantage of JS: You can validate user input before sending the page off to the server. This saves server traffic, which means less load on your server.
Less server interaction
Advantage of JS: They don’t have to wait for a page reload to see if they have forgotten to enter something.
Immediate feedback to the visitors
Advantage of JS: You can create interfaces that react when the user hovers over them with a mouse or activates them via the keyboard.
Increased interactivity
Advantage of JS: You can use JavaScript to include such items as drag and-drop components and sliders to give a Rich Interface to your site visitors.
Richer interfaces