Array in JavaScript is an ordered collection of values where each value has its own position, known as an index. In an array index of the first element is 0, index of the second element is 1, and so on. The difference between arrays and objects is...Read more
Everything in JavaScript, except "Primitives" are "Objects", that's why it's the most important part of the language. Understanding objects is essential in order to become professional. Objects are collections of properties, defined as key-value pairs...Read more
"Call", "apply" and "bind" are all methods within the function prototype, basically doing the same thing: allow us to call a function with given "this" context and arguments, but in different ways. Let's see how to use them...Read more
"This" is a special object in JavaScript that refers to an object it belongs to, its value is decided at the moment of code execution. How do you know what "this" refers to? It's simple, take a look at the following rules...Read more
Hoisting is JavaScript's default behavior of moving declarations to the top of their scope. To begin with learning this mechanism, let's make sure we understand the differences between declaration**,** initialization and assignment...Read more
During a long time, "var" keyword was a king in JavaScript world. You didn't yet have to bother about how to declare a variable, but how to choose the perfect name for it. But using "var" keyword sometimes leads to unexpected issues especially if you are not familiar with all pitfalls...Read more
Javascript is a dynamically-typed, interpreted programming language that was originally developed to add dynamic and interactive elements to web pages. It runs both, on the client and server-side...Read more