Archive for the ‘Theory’ Category

Prototype JS Framework in a nutshell. Part 1.

Here is the first part of the short courses, describing JavaScript frameworks. The first of these will be Prototype JS. Prototype JS Framework — from scratch A little bit of preliminary information appears in the article JavaScript Frameworks — foreword. The purpose of this article is not to replace the documentation, but the description of […]

JSON format and JavaScript

Welcome to the new article. We touch various topics, and now we feel obliged to write about JSON (JavaScript Object Notation). It is a lightweight computer data interchange format. JSON is a text format, and you can treat it as a subset of JavaScript. JSON format in JavaScript The MIME type for JSON format is […]

Testing code and handling errors in JavaScript

Debug it! In this article we will take a look on testing the code and error handling in JavaScript. Handling errors in JavaScript At the beginning would have to say a few words about the need for testing. We need to test everything! Preferably at each stage of creating the code. And we must take […]

JavaScript Frameworks — foreword

So far, we have described most of the key aspects and features of JavaScript including object-oriented programming, DOM, AJAX. There were various practical examples. It’s time for another extremely important step: JavaScript Frameworks. And here comes the real fun (and a considerable saving of time). JavaScript Frameworks We briefly present the solutions well known by […]

Basics of AJAX

Welcome to the next article where we will discuss the basics of this, what changed JavaScript for ever. Basics of AJAX The AJAX (Asynchronous JavaScript and XML) — is a technology of web application development, in which the user can interact with the server without reloading the entire document. Operations are done asynchronously. AJAX technology […]

Cookies in JavaScript

In this article we will talk about working with cookies in JavaScript. And no, it’s not about eating. Working with cookies in JavaScript Cookies — small information sent by a web server and stored on the user side (typically on the hard disk). Cookies are most commonly used for counters, probes, online stores, sites that […]

Math, numbers, calculations. The Math object in JavaScript.

Well, other JavaScript objects we have discussed already, or we will discuss in next articles. Today we will focus on numbers and the Number object in JavaScript, take a look closer at calculations and Math object in JavaScript. JavaScript Number Object It is a primary object to handle numbers, and has properties for numerical constants: […]

OOP in JavaScript part 2. Summary.

Part 2. of the OOP in JavaScript. Today we will show some more advanced examples. OOP in JavaScript — techniques For a good start, let’s take a closer look at arrays. Arrays as objects A simple array, e.g.: can be written in a concise form: And certainly we can operate on arrays in the same […]

Object-oriented programming in JavaScript. OOP part 1.

Welcome to the first part of the articles about object-oriented programming (OOP) in JavaScript. It is actually necessary to explore of the language secrets. Object-oriented programming in JavaScript JavaScript is an object-oriented language, although there is a lack of certain elements typical for object-oriented languages, at least in the current implementations of JavaScript. But let’s […]

Regular expressions in JavaScript

Today we will discuss one of the slightly more difficult topics, namely regular expressions. Of course, really difficult are the most powerful and advanced expressions. However, possibilities offered by this tool are really huge. Regular expressions in JavaScript Regular Expressions are a way to save a pattern, which can be compared with strings, to check […]