CategoryJavaScript

Running JavaScript

As you are reading this blog on online its pretty much sure that you have the full environment to run your JavaScript code right NOW!! How?? Your browser is the environment that is the only thing you need to run JavaScript code. Just press F12, then click Console. Here write a simple code...

JavaScript Step by Step Tutorial

In the time of rising and shining Advanced JavaScript Frameworks some people are desperate about them without knowing the core JavaScript itself ūüėģ Its not only important but also the first requirement to get forward to you r next JS Framework learning journey. I start this series of tutorials just...

JavaScript Iterate over Arrays with map

The map method is a convenient way to iterate through arrays. The map method will iterate through every element of the array and create a new array with values that have been modified by the callback function, and return it. Here’s an example usage: var oldArray = [1, 2, 3]; var timesFour =...

JavaScript Filter Arrays with filter

The filter method is used to iterate through an array and filter out elements. filter takes the current value as an argument and apply conditions. Any array element that returns true will be kept and elements that return false will be filtered out. The following code filter will array elements that...

JavaScript Concatenate Arrays

For concatenating two arrays into one we will use concat function. Say we have array1 and array2 and we want to make a new array by merging these two arrays. The code is: var array1 = [1,2,3,4,5]; var array2 = [6,7,8,9,10]; var newArray = array1.concat(array2); console.log(newArray); // returns...

What is First-class Function?

A programming language is said to have First-class functions when functions in that language are treated like any other variable. For example, in such a language, a function can be passed as an argument to other functions, can be returned by another function and can be assigned as a value to a...

Categories

Imran Pollob

Learn => Practice => Implement => Repeat

Get in touch