🗊 Презентация A simple Script

Нажмите для полного просмотра!
A simple Script, слайд №1 A simple Script, слайд №2 A simple Script, слайд №3 A simple Script, слайд №4 A simple Script, слайд №5 A simple Script, слайд №6 A simple Script, слайд №7 A simple Script, слайд №8 A simple Script, слайд №9 A simple Script, слайд №10 A simple Script, слайд №11 A simple Script, слайд №12 A simple Script, слайд №13 A simple Script, слайд №14 A simple Script, слайд №15 A simple Script, слайд №16 A simple Script, слайд №17 A simple Script, слайд №18 A simple Script, слайд №19 A simple Script, слайд №20 A simple Script, слайд №21 A simple Script, слайд №22 A simple Script, слайд №23 A simple Script, слайд №24 A simple Script, слайд №25 A simple Script, слайд №26 A simple Script, слайд №27 A simple Script, слайд №28 A simple Script, слайд №29 A simple Script, слайд №30 A simple Script, слайд №31 A simple Script, слайд №32 A simple Script, слайд №33 A simple Script, слайд №34 A simple Script, слайд №35 A simple Script, слайд №36 A simple Script, слайд №37 A simple Script, слайд №38

Вы можете ознакомиться и скачать презентацию на тему A simple Script. Доклад-сообщение содержит 38 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1


Lecture 7 JavaScript Senior- Lecturer: Sarsenova Zh.N.
Описание слайда:
Lecture 7 JavaScript Senior- Lecturer: Sarsenova Zh.N.

Слайд 2


A simple Script First JavaScript Page First JavaScript Page document.write(""); document.write("Hello World Wide Web");...
Описание слайда:
A simple Script First JavaScript Page First JavaScript Page document.write(""); document.write("Hello World Wide Web"); document.write("");

Слайд 3


Embedding JavaScript
Описание слайда:
Embedding JavaScript

Слайд 4


Popup Boxes Alert box Confirm box Prompts box
Описание слайда:
Popup Boxes Alert box Confirm box Prompts box

Слайд 5


alert(), confirm(), and prompt()
Описание слайда:
alert(), confirm(), and prompt()

Слайд 6


The typeof operator typeof operator used to find the type of a JavaScript variable.
Описание слайда:
The typeof operator typeof operator used to find the type of a JavaScript variable.

Слайд 7


Example
Описание слайда:
Example

Слайд 8


Undefined data type In JavaScript, a variable without a value, has the value undefined. The typeof is also undefined.
Описание слайда:
Undefined data type In JavaScript, a variable without a value, has the value undefined. The typeof is also undefined.

Слайд 9


Null In JavaScript null is "nothing". It is supposed to be something that doesn't exist. Unfortunately, in JavaScript, the data type of...
Описание слайда:
Null In JavaScript null is "nothing". It is supposed to be something that doesn't exist. Unfortunately, in JavaScript, the data type of null is an object.

Слайд 10


Primitive Data
Описание слайда:
Primitive Data

Слайд 11


Complex Data
Описание слайда:
Complex Data

Слайд 12


Line Breaks To display line breaks inside a popup box, use a back –slash followed by the character n. Example: alert(“Hello\n How are you?”);
Описание слайда:
Line Breaks To display line breaks inside a popup box, use a back –slash followed by the character n. Example: alert(“Hello\n How are you?”);

Слайд 13


JavaScript Objects Objects in real life is for instance Students Properties: name, ID, weigh, height etc. Methods: eat, speak, walk, read, do...
Описание слайда:
JavaScript Objects Objects in real life is for instance Students Properties: name, ID, weigh, height etc. Methods: eat, speak, walk, read, do something and etc.

Слайд 14


JavaScript Objects You have already learned that JavaScript variables are containers for data values.
Описание слайда:
JavaScript Objects You have already learned that JavaScript variables are containers for data values.

Слайд 15


Objects Objects are variables too. Objects can contain many values
Описание слайда:
Objects Objects are variables too. Objects can contain many values

Слайд 16


Example
Описание слайда:
Example

Слайд 17


Object Properties The name: values pairs are called properties.
Описание слайда:
Object Properties The name: values pairs are called properties.

Слайд 18


Object Methods Methods are actions that can be performed on objects. Methods are stored in properties as function definitions
Описание слайда:
Object Methods Methods are actions that can be performed on objects. Methods are stored in properties as function definitions

Слайд 19


Example
Описание слайда:
Example

Слайд 20


Accessing Object Properties 2 ways Or
Описание слайда:
Accessing Object Properties 2 ways Or

Слайд 21


Accessing Object methods ObjectName.methodName()
Описание слайда:
Accessing Object methods ObjectName.methodName()

Слайд 22


Example
Описание слайда:
Example

Слайд 23


Do Not Declare Strings, Numbers, and Booleans as Objects! When a JavaScript variable is declared with the keyword "new", the variable is...
Описание слайда:
Do Not Declare Strings, Numbers, and Booleans as Objects! When a JavaScript variable is declared with the keyword "new", the variable is created as an object:

Слайд 24


Conditional Statements Very often when you write code, you want to perform different actions for different decisions. You can use conditional...
Описание слайда:
Conditional Statements Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this.

Слайд 25


Types of conditional statements if statement - use this statement if you want to execute some code only if a specified condition is true if...else...
Описание слайда:
Types of conditional statements if statement - use this statement if you want to execute some code only if a specified condition is true if...else statement - use this statement if you want to execute some code if the condition is true and another code if the condition is false if...else if....else statement - use this statement if you want to select one of many blocks of code to be executed switch statement - use this statement if you want to select one of many blocks of code to be executed

Слайд 26


If statement Syntax and example If (expression) { Statements to be executed if expression is true }
Описание слайда:
If statement Syntax and example If (expression) { Statements to be executed if expression is true }

Слайд 27


If .. Else statement
Описание слайда:
If .. Else statement

Слайд 28


If…else if… statement syntax
Описание слайда:
If…else if… statement syntax

Слайд 29


If…else if… statement example
Описание слайда:
If…else if… statement example

Слайд 30


Switch Statement You should use the Switch statement if you want to select one of many blocks of code to be executed.
Описание слайда:
Switch Statement You should use the Switch statement if you want to select one of many blocks of code to be executed.

Слайд 31


Switch statement’s syntax
Описание слайда:
Switch statement’s syntax

Слайд 32


A simple Script, слайд №32
Описание слайда:

Слайд 33


The break Keyword When JavaScript reaches a break keyword, it breaks out of the switch block. This will stop the execution of more code and case...
Описание слайда:
The break Keyword When JavaScript reaches a break keyword, it breaks out of the switch block. This will stop the execution of more code and case testing inside the block. When a match is found, and the job is done, it's time for a break. There is no need for more testing

Слайд 34


The default Keyword The default keyword specifies the code to run if there is no case match:
Описание слайда:
The default Keyword The default keyword specifies the code to run if there is no case match:

Слайд 35


JavaScript Math Objects allows you to perform mathematical tasks on numbers Math.round(x) returns the value of x rounded to its nearest integer...
Описание слайда:
JavaScript Math Objects allows you to perform mathematical tasks on numbers Math.round(x) returns the value of x rounded to its nearest integer Math.round(4.7); // returns 5 Math.round(4.4); // returns 4: Math.pow(x, y) returns the value of x to the power of y: Math.pow(8, 2); // returns 64 Math.sqrt(x) returns the square root of x: Math.sqrt(64); // returns 8 Math.abs(x) returns the absolute (positive) value of x: Math.abs(-4.7); // returns 4.7 Math.ceil(x) returns the value of x rounded up to its nearest integer: Math.ceil(4.4); // returns 5 Math.floor(x) returns the value of x rounded down to its nearest integer: Math.floor(4.7); // returns 4 Math.min() and Math.max() can be used to find the lowest or highest value in a list of arguments: Math.min(0, 150, 30, 20, -8, -200); // returns -200 Math.max(0, 150, 30, 20, -8, -200); // returns 150 Math.random() returns a random number between 0 (inclusive), and 1 (exclusive): Math.random();

Слайд 36


Math Properties (Constants) Math.E // returns Euler's number Math.PI // returns PI Math.SQRT2 // returns the square root of 2 Math.SQRT1_2 // returns...
Описание слайда:
Math Properties (Constants) Math.E // returns Euler's number Math.PI // returns PI Math.SQRT2 // returns the square root of 2 Math.SQRT1_2 // returns the square root of 1/2 Math.LN2 // returns the natural logarithm of 2 Math.LN10 // returns the natural logarithm of 10 Math.LOG2E // returns base 2 logarithm of E Math.LOG10E // returns base 10 logarithm of E

Слайд 37


JavaScript Random Integers Math.random() used with Math.floor() can be used to return random integers. Math.floor(Math.random() * 10); //returns a...
Описание слайда:
JavaScript Random Integers Math.random() used with Math.floor() can be used to return random integers. Math.floor(Math.random() * 10); //returns a number between 0 and 9

Слайд 38


Home work: read Chapter 15
Описание слайда:
Home work: read Chapter 15



Теги simple Script
Похожие презентации
Mypresentation.ru
Загрузить презентацию