- •Introduction
- •1 Working with javascript objects and arrays
- •JavaScript is an Interpreted Language
- •1.2 JavaScript History Object, Working with JavaScript Objects and Arrays (JavaScript)
- •Intrinsic objects, such as Array and String.
- •Arrays as Objects. In JavaScript, objects and arrays are handled almost identically, because arrays are merely a special kind of object. Both objects and arrays can have properties and methods.
- •Create an Array in JavaScript. Here is an example, shows how to create an array in JavaScript:
- •Display Array Element in JavaScript. Here is an example, shows how to display/print array element in JavaScript:
- •2 Reports using objects and arrays javascript
- •2.1 Specify a reference to the result of the report, which appeared in arrays of javascript
SOUTH KAZAKHSTAN STATE PEDAGOGICAL UNIVERSITY
FACULTY OF NATURAL SCIENCES
Department of Phyics and Mathematics
Course works
Theme:«Registering Events in JavaScript»
Prepeared by: Tukhtamuratov S.S
Group: Computer science 111-14 «а»
Checked by: Shomanbayeva M.T
Shymkent – 2017
CONTENT
INTRODUCTION.................................................................................................................3 1 Registering Events in JavaScript ……………………………….…………………4
1.1 JavaScript is an Interpreted Language……..……………...............................................4
1.2 JavaScript History Object and Allocation of JavaScript-code……………….…….......8
1.3 Registering Events in JavaScript …………………………..…………………...12
2 REPORTS USING EVENTS IN JAVASCRIPT.............................................................28
2.1 Specify a reference to the result of the report, which appeared in arrays of javascript.28
CONCLUSION....................................................................................................................30
BIBLIOGRAPHY………...……………………….…........................................................31
Introduction
JavaScript objects are collections of properties and methods. A method is a function that is a member of an object. A property is a value or set of values (in the form of an array or object) that is a member of an object. JavaScript supports four kinds of objects:
Intrinsic objects, such as Array and String.
Objects you create.
Host objects, such as window and document.
ActiveX objects.
JavaScript is more than just strings and numbers. JavaScript lets you create objects and arrays. Objects are similar to classes. The objects are given a name, and then you define the object's properties and property values. An array is an object also, except arrays work with a specific number of values that you can iterate through. This article discusses how to create and work with objects including arrays.
A JavaScript array is an object that contains a number of items. Those items can be variables (such as strings or numbers) or even other objects (such as Image objects or custom objects which you as a JavaScript developer have created). Once you have grouped all the items into the array you can then perform tasks like sorting the array items into alphabetical or numerical order, accessing and changing the value assigned to each array item, and passing the group of items as an argument to a JavaScript function (see Understanding JavaScript Functions) by passing just the array object.
In this chapter we will look in detail at how to create and manipulate JavaScript arrays.
JavaScript is a client and server-side object-based scripting language that is used to make interactive Web pages. A scripting language is a lightweight programming language with less complexity.
JavaScript is the most usually used scripting language to add dynamism and interactivity to Web pages. This is because JavaScript, written on the client-side, executes on a client browser, thereby reducing the load on the server.
Course works purpose: The purpose of the course: the use of objects and arrays Javascript. Reports using objects and arrays. Explanation of the effect and reporting on the results.
Relevance of the topic: Working with objects and arrays Javascript is one of the current problems at the moment. However, for students this problem is solved using objects and arrays Javascript. I think that, using this theme, we will formulate our relevance.
Course works structure: introduction, two chapters, conclusion, list of literature used. Javascript The first part of working with Javascript, working with structures. The second part includes reviews of Javascript objects and arrays, as well as explanations, achievements and uses in the region.
1 Working with javascript objects and arrays
JavaScript is an Interpreted Language
JavaScript is an interpreted language, which implies that scripts written to JavaScript are processed line by line. These scripts are interpreted by the JavaScript interpreted, which is a built-in component of the Web browser.
JavaScript can be written on the client-side as well server-side. Client-side JavaScript allows you to validate only those programs that execute and produce the result on the client-machine. In counterpoint/contrast, server-side JavaScript validates only those programs that execute on the server. JavaScript includes various built-in objects and features that can be used to make your HTML pages dynamic.
JavaScript is platform-independent. JavaScript is platform-independent, which implies that you need to write the script once and can run it on any platform or browser without affecting the output of the script.
Why to Learn JavaScript ? There are the three languages, all web developers must know, these are the following:
HTML - to define the content of web pages
CSS - to define the layout of web pages
JavaScript - to program the behaviour of web pages
So to program the behaviour of Web pages, you must have to learn JavaScript. You will learn all about JavaScript in this tutorial.
Advantages of JavaScript. Here are the advantages of JavaScript:
Less server interaction
More interactivity
Richer interfaces
Fast feedback to visitors
and many more
A Simple JavaScript Example. Here is a simple JavaScript example.
<!DOCTYPE HTML>
<html>
<head>
<title>JavaScript Tutorial</title>
</head>
<body>
<h2>JavaScript Tutorial - Learn JavaScript</h2>
<p id="test">This is a simple Example of JavaScript.</p>
<button type="button"
onclick="document.getElementById('test').innerHTML = 'Welcome to JavaScript!'">
Click Me</button>
</body>
</html>
Save the above file with .html extension like filename.html, and open it in your browser, the web page will look like:
Now click, on the button Click Me, you will watch Welcome to JavaScript!in the place of This is a simple Example of JavaScript. as shown in this image:
You can also try it with your own, by clicking on the below button: JavaScript Tutorial - Learn JavaScript. This is a simple Example of JavaScript. Click Me
You will learn all about JavaScript one by one in separate tutorials. This tutorial series are divided into these parts:
JavaScript Basics Tutorial |
|
Homepage of JavaScript Tutorial |
Syntax of JavaScript Program |
Placements of JavaScript Code in HTML |
Output of JavaScript |
Statements in JavaScript |
Keywords in JavaScript |
Comments in JavaScript |
Variables in JavaScript |
Operators in JavaScript |
Comparison/Logical in JavaScript |
Data Types in JavaScript |
|
JavaScript Conditional Statements Tutorial |
|
Conditional Statements in JavaScript |
if Statement in JavaScript |
if-else Statement in JavaScript |
switch Statement in JavaScript |
Loops in JavaScript |
for Loop in JavaScript |
while Loop in JavaScript |
do-while Loop in JavaScript |
Break Continue in JavaScript |
|
JavaScript Popup Boxes Tutorial |
|
Dialog Box in JavaScript |
alert Box in JavaScript |
confirm Box in JavaScript |
prompt Box in JavaScript |
JavaScript Functions Tutorial |
|
Functions in JavaScript |
Function with Parameters in JavaScript |
Return Statement in JavaScript |
Variable Scope in JavaScript |
setTimeout() Method in JavaScript |
setInterval() Method in JavaScript |
JavaScript Events Tutorial |
|
Events in JavaScript |
onclick Event in JavaScript |
onload Event in JavaScript |
Mouse Events in JavaScript |
onreset Event in JavaScript |
onsubmit Event in JavaScript |
JavaScript Objects Tutorial |
|
Objects in JavaScript |
Number Object in JavaScript |
Array Object in JavaScript |
String Object in JavaScript |
Boolean Object in JavaScript |
Math Object in JavaScript |
RegExp Object in JavaScript |
Date Object in JavaScript |
JavaScript Browser Objects Tutorial |
|
Browser Objects in JavaScript |
Window Object in JavaScript |
Navigator Object in JavaScript |
History Object in JavaScript |
Screen Object in JavaScript |
Location Object in JavaScript |
JavaScript Document Object Tutorial |
|
Document Object Collection in JavaScript |
Document Object Properties in JavaScript |
Document Object Methods in JavaScript |
Document Object with Forms in JavaScript |
JavaScript DOM Tutorial |
|
DOM in JavaScript |
DOM Nodes in JavaScript |
DOM Levels in JavaScript |
DOM Interfaces in JavaScript |
JavaScript Cookies Tutorial |
|
Cookies in JavaScript |
Create/Delete Cookies in JavaScript |
JavaScript Advanced Tutorial |
|
Regular Expression in JavaScript |
Page Redirection in JavaScript |
Form Validation in JavaScript |
Validations in JavaScript |
Error Handling in JavaScript |
Exception Handling in JavaScript |
try-catch throw finally in JavaScript |
onerror Event in JavaScript |
Multimedia in JavaScript |
Animation in JavaScript |
Image Map in JavaScript |
Debugging in JavaScript |
Browser Detection in JavaScript |
Security in JavaScript |
