Category: General

ECMAScript and JavaScript

ECMAScript is a specification for scripting languages such as JavaScript.Suppose if a browser supports specifications of ECMAScript then it will execute code written in any ECMAScript compatible language.In other words ECMAScript compatible scripting language guarantees that the code will execute in any ECMAScript compatible...

Generic Function in TypeScript

Generic functions are defined by declaring a type parameter when declaring the function ,in angular brackets.The type parameter is the placeholder which is replaced by the actual type arguments when the program executes. So we define a generic method as:...

Displaying status of files in Git

Git status command provides information about the local working directory.It provides information such as: Current branch Files in the staging area Untracked/tracked files   As the message above states that there is an untracked file test.txt we can add the...

Git fetch and pull commands

We use several GIT commands to work with the remote repositories.Two of the commands useful for updating the remote repository are fetch and pull. Git fetch While using GIT we work with repositories. Repositories can be on our local system...

Advantages of Angular JS 2.0

AngularJS is a 6 year old javascript framework.Lot of things have changed since the first release of AngularJS. Angular 2 is a rewrite of AngularJS which addresses these changes in web development. Angular 2 is a platform for building web...

Creating a repository in Git

The first step in working with git is to create a new git repository.We can create a new git repository by either copying an existing repository initializing a new repository Copying an existing repository for copying an existing repository we...

Unstaging in Git

Version control tools such as Git are used in most of the development projects.Though version control systems such as Git simplifies things but at the same time it requires proper understanding of the tool to work with it efficiently. While...

Stashing in GIT

While working in git we sometimes makes some changes in the working directory but don’t want to commit those changes.Suppose you are implementing some new feature.Now you are required to change to a different branch.If you change the branch without...

Committing files in Git

Three states of files in git at any point of time a file in git can be in 1 of the following three states modified a file is just modified.You have changed the contents of the file but the file...

Node Package Manager -NPM

Node Package Manager or NPM is a command line tool used while working with Node.js. NPM provides the following features for Node.js developers: As there are lots of packages for Node.js ,NPM makes it easier to manage them.It represents a...