How to rename a git branch

Git branching is very essential feature when you are working in a team and different team member are handling different features. There are some instances when you might have to rename branch  like   When got a better branch name that you already assigned…..ha ha!!!. Your manager wants that feature to reinvent with new strategy. Some other reasons of yours. If you want to rename a branch while you are on any other branch.

If you want to rename the current branch, you are on.

In case of any query, comment below.   Also Read: How do I …

Continue Reading

New ES6 Features

ECMAScript 6, also known as ECMAScript 2015, is the latest version of the ECMAScript standard. Implementation of these features in major JavaScript engines is underway now. See the ES6 standard for full specification of the ECMAScript 6 language.   ES6 includes the following new features: Arrow Function Classes Destructuring Constant and let Arrow Function: Arrow functions are a new ES6 syntax for writing JavaScript Functions. They will save developers time and simplify function scope. ES6 fat arrow functions have a shorter syntax compared to function expressions and lexically bind to this value. Arrow Function Syntax:

JavaScript function can be written in two ways …

Continue Reading

Adding large number in JavaScript

Today i had an Interview with one of the company and interviewer guy (Ritesh) asked me very simple problem that “How will you add two numbers if numbers are very large/Add large number in JavaScript?”. Frankly saying, i never gave a thought about this problem ever. My interviewer didn’t got got impressed but still i thought of solving it. So below id the function that i have coded for it. Problem: Javascript support at most 53 bit of integer only. If number goes beyond it, Javascript loose precision.  Small number can be added simply as follow:

But if you try …

Continue Reading