Daily Archives: December 4, 2016

In JavaScript, the Unshift array method adds new items to the beginning of an array and returns the new length. This method changes the length of an array. Here is some sample code from w3schools.com Unshift Objects Here is a screenshot of the console output in Google Chrome browser.

JavaScript Arrays unshift

The findIndex() method returns the index of the first element in an array that passes a test (provided as a function). The findIndex() method executes the function once for each element present in the array: If it finds an array element where the function returns a true value, findIndex() returns […]

JavaScript Arrays findIndex

Here is what Wikipedia says about Abstraction (software engineering): “In software engineering and computer science, abstraction is a technique for arranging complexity of computer systems. It works by establishing a level of complexity on which a person interacts with the system, suppressing the more complex details below the current level. […]


Here is what Wikipedia says about a source-to-source compiler: “A source-to-source compiler, transcompiler or transpiler is a type of compiler that takes the source code of a program written in one programming language as its input and produces the equivalent source code in another programming language. A source-to-source compiler translates […]

Source-to-source Compiler

Here is what Wikipedia says about TypeScript: “TypeScript is a free and open-source programming language developed and maintained by Microsoft. It is a strict super-set of JavaScript, and adds optional static typing and class-based object-oriented programming to the language”. TypeScript is designed for development of large applications and transcompiles to […]

TypeScript Introduction

The JavaScript array find() method gets the first element of the array that has a specified value. Below is some modified sample code from w3schols.com. The find() method returns the value of the first element in an array that pass a test (provided as a function). The find() method executes […]

JavaScript Arrays find