JavaScript module pattern is the one to start, if you are new to JavaScript design patterns. It’s very easy to build a module pattern with a closure and a self-invoking aka IIFE function. This pattern can be written using a normal function or function expression, in this article, we are going to use a

The comma operator will execute the series of expressions and returns the last one. Let’s look at the below functions “print_hello()”, “print_world()” and “print_js()”. View the code on Gist. This code:

JavaScript

1

varoutput=(print_hello(),print_world(),print_js());

will execute all the three functions and returns the value of “print_js()” to the variable output.

The “React Frequent Pages” component displays the freqently visited pages widget. This component can be customized such as the number of items to show and the look and feel. This is my first contribution to React JS community, please feel free to post if you face any issues while using this component. Installation

ES6 (ECMA Script 6) or ECMA 2015 is the latest version of JavaScript released in June, 2015. ES6 is having lots of cool new features which we are going to explore in the upcoming sessions. Lot of popular JavaScript frameworks such as Angular 2 and React JS are started using the ES 6 features. Currently

Developers who worked in PHP know the features of Date functions and formats. The following code will give an idea to implement a PHP style date formats in JavaScript. This class is not a complete solution, it has just only day formats, please extend it to month and year.

Method chaining pattern is very useful to call multiple methods on a same object. This design pattern is very popular in most of the Object Oriented Programming languages such as Ruby, Java, PHP and JavaScript. Nowadays most of the frameworks/CMSs uses Method chaining pattern including jQuery (JavaScript), YII (PHP) and Drupal (PHP) etc. Let’s have