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