How to update nodejs and npm [Node Package Manager] ?

Step-1: First check the node and npm versions node -v npm -v Step-2: npm install globally npm install npm -g Step-3: Check the npm version now npm -v Step-4: Again install for cross verification. npm install npm -g Step-5: Clear the npm cache to use…

GruntJS in Simple English Part5

JSHINT How to install JSHint npm install grunt-contrib-jshint–save-dev Usages of JSHint Ignoring the specific warnings Save the loggings We can defined the various configurations UGLIFY How to install Uglify ? npm install grunt-contrib-uglify –save -dev Usages of Uglify Variable renaming called mangling This configuration will…

GruntJS in Simple English Part4

How we use grunt in Javascript? We used many ways for grunt in Javascript some of the main features are below. Validating Javascript using – jshint Compressing Javascript using – Uglify Cleaning folders and files using – Contrib-Clean (We Checked already in previous part) We…

GruntJS in Simple English Part3

Creating the package.json file first Enter the name, version, development dependencies Install grunt locally using this command [npm install grunt –save-dev] After installed grunt one folder created in root folder called node_modules,Inside that grunt installed locally After grunt installed you can install the grunt clean…

GruntJS in Simple English Part2

Why we use grunt ? What are the things grunt done ? Validate HTML/JS/CSS Compress CSS and JS Compile the CoffeeScript , TypeScript (mainly nowadays used for Angular2)..etc LESS to CSS Grunt Architecture ? Using package.json file we can described the Gruntjs file configurations. In…

GruntJS in simple English part 1

Introduction:- GruntJs is used for Task Runner. What is Task runner why we use? In one word: automation. The less work you have to do when performing repetitive tasks like minification, compilation, unit testing, linting, etc, the easier your job becomes. After you’ve configured it…

Javascript Understanding Variable Scope and closures

Hi All, I learned from some Youtube video some of my friends share to me and personal thank to Daniel Zabinskas First of all thanks to sitepoint 1. Declaring Variables 2. Hiding global Variables with local variables of the same name 3. Scope Chain-I When…

Backbonejs how to pass the parameter in this.model.destroy()

In template:-   <a class=”btn btn-danger” id=”delete”> Delete </a> In Views:-   events: { “click #delete”: “deleteConfirm” }, deleteConfirm: function() { if (!confirm(“Want to delete ?”)) { return; } else { this.delete(); } }, delete: function() { this.model.destroy({ data: $.param({ address: add }), success: function()…