17 posts

JavaScript

JavaScript ES6 – Array includes method

The JavaScript includes() method determines whether an array includes a certain value, If array contains it returns true and if doesn't it will return false.

Updated: Jul 3, 2022 2 mins read

JavaScript ES6 – Array concat method

The JavaScript array concat() method is used to merge two or more arrays. This method does not change the existing arrays, but instead returns a new array.

Updated: Jul 4, 2022 2 mins read

JavaScript ES6 – Array sort method

The JavaScript sort method sorts the elements of an array and returns the sorted array. The default sort order is ascending, but you can also sort array in descending order.

Updated: Jul 3, 2022 2 mins read

JavaScript ES6 – Array find method

JavaScript array find method searches an array and returns the first matching element found, or it will return undefined if no match is found.

Updated: Jul 4, 2022 2 mins read

JavaScript ES6 – Array every method

JavaScript array every method checks if every element in your array passes your test. If every element passes it returns true, if not returns false.

Updated: Jul 4, 2022 2 mins read

JavaScript ES6 – Array some method

Javascript array some method check all elements in array, if at least one element passes the condition it will return true otherwise the result is false.

Updated: Jul 4, 2022 2 mins read

JavaScript ES6 – Array reduce method

JavaScript array reduce is commonly used for performing math expressions and equations, for instance calculating the total of a numbers array.

Updated: Jul 4, 2022 3 mins read

JavaScript ES6 – Array filter method

JavaScript array filter method conditionally return elements from one array into a new array. It's used to remove items by excluding them from the result.

Updated: Jul 4, 2022 3 mins read

JavaScript ES6 – Array map method

JavaScript array map method allows us to loop thru an array, access each value in each iteration and return changed or copied values in form of a new array.

Updated: Jul 4, 2022 2 mins read

JavaScript ES6 – Array forEach method

Array ForEach is a method that exists on the Array.prototype that was introduced in ECMAScript and is supported in all modern browsers.

Updated: Jun 26, 2022 3 mins read

JavaScript ES6 – Reserved keywords?

Reserved keywords in ECMAscript also known as JavaScript which are listed below. These keywords cannot be used as variable or function names in JavaScript. 

Updated: Jul 4, 2022 1 min read

JavaScript ES6 – What is variable?

Variables in JavaScript is to store data that can be changed later. All JavaScript apps need to work with data, data is always stored in variables.

Updated: Jul 4, 2022 3 mins read