Archive for the ‘Practice’ Category

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 […]

Смотрите информацию ChatBoty dla turystyki на сайте.

Date and time in JavaScript

The time flies, and we will write about date and time in JavaScript. Today less theory, more practical examples. Date and time in JavaScript. The Date object. To handle dates in JavaScript there is an object called Date. Basic example: The Date object — methods Methods of the Date object: Tip: use instanceof With this […]

Mastering bitwise operators in JavaScript. Like a boss!

Bitwise operators in JavaScript Today we will try to present bitwise operators in JavaScript language, in an accessible form. The overall concept of the bitwise operators’ work in JavaScript is as follows: — arguments are converted to 32-bit integer and expressed by a sequence of bits, — each bit in the first argument is matched […]

Interesting issues and good practices in JavaScript

Welcome to the first, but certainly not the last topic of this type, which touches interesting features of JavaScript, tricks and less common structures, like the with instruction. Interesting issues and good practices in JavaScript For a good start: Tip #1 — the ‘with’ instruction The with instruction, being a part of JavaScript language, allow […]

JavaScript DOM. Next step — we explore DOM and BOM.

It’s time to take a step forward. We explore DOM and BOM (Browser Object Model, don’t confuse with Byte Order Mark). JavaScript DOM We will meet with DOM many times. The topic is extensive, but definitely it’s one of the most interesting things in JavaScript. Moreover, thanks to the operations of the DOM we have […]

JavaScript file

Arrays and strings in JavaScript. Basics part 5 — summary.

After discussing the absolute basics, it’s time to talk about arrays and strings in JavaScript. These are really important elements, and having mastered them we are ready to go to the next level. Arrays and strings in JavaScript At first we’ll take a look at text strings and basic methods of processing them. Afterwards we’ll […]