-
How to copy files from one server to another using SSH?
Transfer files from server to server by using SSH is very convenient. You can use the server’s download and upload speed to transfer files. Login to your old server from which you want to copy or transfer files. You can use any SSH terminal like PuTTY or MacBook’s Terminal. ssh userName@hostname in most cases username…
-
Complete ReactJS Guide
To be continued … React JS is a JavaScript library thats runs in the browser. React is all about component to building an application. We can divide a website into a number of components, like header, sidebar, widgets etc. By writing react components we can reuse those components across various pages in our website or…
-
Complete guide to Javascript .map() function
Javascript map() function can applies a function to each element in an array and returns a copy of the original array with modified values (if any). Syntax const newArray = oldArray.map(function(elementValue, index, array) { // Do stuff with elmentValue (index and array are optional) }); Parameteres newArray – the new array that is returned oldArray…
-
Complete guide to Javasript .reduce() function
Javascript reduce() method reduces the array to a single value. It can also executes a provided function for each value of the array (from left-to-right). The return value of the function is stored in an accumulator (result/total). Syntax of .reduce() function array.reduce(function(total, currentValue, currentIndex, arr), initialValue) Parameters total Required – The initialValue, or the previously…
-
Javascript .map() function to iterate array and object items
.map() with call back function .map() accepts a callback function as one of its arguments, and an important parameter of that function is the current value of the item being processed by the function. This is a required parameter. With this parameter, we can modify each individual item in an array and create a new…
-
Javascipt Class
A class is a blueprint of object. Class can have properties and methods //in ES7 class Car { //eliminating constructor model = ‘BMW’; printModel = () => { console.log(this.model); } } class Human { constructor (){ this.gender = ‘male’; } printGender(){ console.log(this.gender); } } class Person extends human { constructor (){ super(); this.name = “john”;…
