-
How to manually copy emails with password from one server to another
Login to your old cpanel account and go to the file manager. You have to go the the root folder of your old server. The folder before public_html. After going to the root folder you have to work with mainly 3 folders namely mail, etc and .cpanel. Go to the mail folder and you will […]
-
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 Object Oriented Programming (OOP) concept in Java
Class A class is a collection of methods and variables. It is a blueprint that defines the data and behaviour of a type or kind. So, a class is a template for objects, and an object is an instance of a class // Class Declaration public class Car { // Instance Variables String brand; String […]
-
JavaScript Arrow function
Normal Function function aFunction(props){ return My Todo; } Arrow Function const aFunction = (props) => { return My Todo; }
-
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”; […]
-
Arrow Function Syntax
const printMyName = (name) => { console.log(name); } printMyName(‘John’); const multiply = number => number*2; console.log(multiply(2));