Getting started with Javascript and jQuery


Contents:


What is JavaScript? Integration into HTML
code {color: # 339} JavaScript (JS) is an object-ori...
Basics of syntax. Variables and Constants
In this lesson, we'll take a look at the basic syntax rules for JavaScript, and we'll also look at t...
Expressions and Operators
Выражение is a construction that consists of values, variables (co...
Data types. Boolean type.
Consider логический тип data. Variables of this data type can take...
Data types. Numeric type
For presentation целых numbers and numbers с плава...
Data types. String type.
Строка at JS is a sequence of ch...
Data types. Array
Массив is some ordered set of data accessed through
Data types. An object
Объекты - the most common data structure in JS. Practically "every...
Data types. Undefined and Null
Undefined is a special value for variables that automatically assigns them to the same...
JSON
JSON (JavaScript Object Notation) - special representation of objec...
Basics of casting types
Since JS is not a strongly typed programming language, it becomes necessary to automatically bring t...
Functions of interaction with the user. Debugging scripts.
To interact with the JS script with the user, three simple functions are used: alert()...
Control structures: conditions
Until now, we have provided examples of JS scripts that were линейными
Cycles. The for () loop
As in other programming languages, JavaScript is implemented циклы ...
Cycles. The while () and do-while ()
Consider the cycle while() . This cycle is often called a cycle by c...
Cycles. The for (in) loop
Cycle for (in) It is used to search through the values of the array...
Cycle control with break and continue
In this lesson, consider the guidelines break and continue. They are des...
Fundamentals of functions
Функция is a certain block (fragment) of code, which has its name,...
Scope of variables
Consider the concept of области видимости variables. For clarity, ...
Anonymous functions. Definition of methods of the object.
Also, it should be noted that JS uses анонимные functions (
Event Handling
События Web documents are some processes that occur on a web page....
Using the DOM. Accessing items
With JS, you can access elements (which are DOM objects) of a web page in order to work with them. T...
Using the DOM. Modifying items, accessing styles
In the previous lesson, we learned how to access a set of objects or a specific DOM object. This mea...
Using the DOM. Adding and Removing Items
By means of JS, you can also add objects to the object model or delete them. For со...
Basics of using the browser object model
BOM (Browser Object Model) is a special tree structure that simula...
What is AJAX?
AJAX (Asynchronous JavaScript and XML) is a way to send data to th...
Example from life: form validation with JS
Let's try to apply this knowledge to practice. To do this, create a JS script that will check if all...
What is jQuery. Connecting to jQuery
jQuery - special library based on JavaScript
The basics of jQuery. Selectors
Суть синтаксиса jQuery is the selection of objects by selectors and...
The basics of jQuery. Actions
As noted in the previous lesson, jQuery allows you to conveniently...
jQuery: Bypassing the Document Object Model
Обход DOM is the process of transitioning from the selected DOM ele...
jQuery: Event Handling
JQuery provides a number of different methods for handling various событий ...
jQuery: adding effects
In jQuery, in addition to the ability to modify the DOM itself, it is possible to add
jQuery: Modifying DOM Elements and Styles
In jQuery, you can change the DOM elements, including their style rules. In this lesson, we'll look ...
jQuery: adding and removing DOM elements
jQuery provides convenient tools for добавления и Removal...
Example from life: form validation using jQuery
Let's consider an example of form validation using jQuery. The task will remain the same, namely: be...