Learn ES6 – Basic Concept Every JavaScrip Developer should know about ES6

JavaScript is undoubtedly one of the most popular programming languages in the world. It’s used almost everywhere: from large-scale web applications to complex servers to mobile and IoT devices. Part #1: Introduction ECMAScript is a general-purpose programming language, standardised by Ecma International according to the document ECMA-262. It is a JavaScript standard meant to ensure... Continue Reading →

Angularjs Factory Unit Test Case

Factory Code (function() { 'use strict'; angular .module('myApp.restangular') .factory('Users', Users); Users.$inject = [ 'Restangular', 'apiUrl' ]; function Users(Restangular, apiUrl) { var Users = Restangular.service('users'); Restangular.extendModel('users', function(model) { model.isRecent = function() { var createdAt = moment.utc(this.created_at); var difference = moment.duration(moment.utc().diff(createdAt)); return difference.asHours() < 48; } model.lastConnection = function() { return moment.utc(this.updated_at).fromNow(); }; model.isOnline = function() {... Continue Reading →

Start a Blog at WordPress.com.

Up ↑

Design a site like this with WordPress.com
Get started