Please enable JavaScript.
Coggle requires JavaScript to display documents.
Lesson 8 - Coggle Diagram
Lesson 8
Quiz Questions
- What individual fields can be validated with the validator?
- What is a Dynamic application
- Give an example of a recognised event
-
- What are 3 of the general rules for constructing names for variables?
Validating Input
-
-
Javascript makes an application dynamic and interactive by taking a static page and then enabling the end user to take actions in the application. A dynamic application responds based on how to user interacts with the page or application
-
JS Syntax
var x, y, z; // Declare Variables
-
-
JavaScript Values
Fixed Values
Fixed Values are known as literals. Rules: Numbers must be written with or without a decimal.
Strings are text, written within double or single quotes. " " ' '.
Variable Values
Variable values are known as variables. These are used to store data. Javascript uses 'var' to declare the variable. Followed by an = sign which assigns the values to the variables. Rules for variables: All variables must be identified with unique names.
Identifiers
Rules
Names can contain letters, digits, underscores, and dollar signs.
-
-
-
-
Assignment Operator
An = sign does not mean equal to, but is an assignment. To make something equal to, you must place it as ==.
-
Key Terms
.
-
dynamic application
adjusts and responds to such actions by end users. JavaScript also expands the opportunities to animate displays, that is, to have parts of the display move and update while an end user watches.
-
-
interactivity
It enables an end user to take an action
in an application, usually by clicking a button or pressing a key
Libraries
Is collection of resources, like pre-written function code and subroutines, that
developers use to create programs.
-
JavaScript
JavaScript is a capable programming language with great abilities to express the interactions you want your end users to have with your app.
-
-
jQuery
There are many JavaScript libraries available, and
jQuery is one of the most popular.