Author: ashish

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...

Data Types in TypeScript

TypeScript adds new useful features to JavaScript. One such feature is type system in TypeScript. In JavaScript types are dynamic,this means that variable are not of any specific type.So a variable can be assigned values of different types during its...

Declaring Modules in TypeScript

TypeScript has the concept of modules.Here we will see how to declare modules in TypeScript. When working on any application it helps to keep the code organized.Keeping the code organized provides the following advantages: Code is easier to locate since...

Renaming file or directory in Git

A common scenario while working with configuration management tools such as git is to rename existing files and directories. If you just rename an existing file or directory then git will not be aware of this change.You need to inform...

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...