Categories
JavaScript

JavaScript Arrays filter method

After map method we are continuing our series on JavaScript Arrays methods. Today we are going to take a look at filter method. According to MDN: The filter() method creates a new array with all elements that pass the test implemented by the provided function. What does this mean? It means that you pass criteria […]

Categories
JavaScript Tips&Tricks

console.log in JavaScript – Tips & Tricks

One of the most used feature in JavaScript is console.log(), especially for debugging. Even though it is widely used most of the time we do not utilize all the power and possiblities of console.log(). console.log This is the most famous and most popular way of logging, even though we have some more ways, but let’ […]

Categories
JavaScript

JavaScript Arrays map method

Map method in JavaScript was introduced with ES-5. This is third article on JavaScript Arrays. If you haven’ t read first and second, please do. First two articles were little longer than we expected, so we will try to keep this one short. According to MDN: The map() method creates a new array populated with […]

Categories
JavaScript

JavaScript Arrays Loops

JavaScript Arrays is huge area, so we split this topic in multiple articles. If you haven’ t read part one you can read it: JavaScript Arrays – Manipulating data. This time we are covering JavaScript Arrays Loops and how to use loops to iterate over an arrays. Loop is a code/function that runs until certain […]

Categories
JavaScript

JavaScript Arrays – Manipulating data

JavaScript Arrays are list-like objects whose prototype has methods to perform traversal and mutation operations, according to MDN. Arrays are one of the basic Data storing/manipulating/handling things you will encounter when first starting with almost any programming language, if not all of them. Simply put: Arrays are simple way of storing data. In JavaScript, unlike […]

Categories
JavaScript

How to select element(s) using vanilla JavaScript?

You don’ t need jQuery to perform simple element selection. I bet you wrote million times $(“#element”), or $(“.elements”) just to select something. Modern DOM API gives you everything you need to select element, by ID, by Class, by Tag, by Attributes, by Pseudo-Class, yeah literally by anything that comes to your mind. By ID […]