Rest parameter in ES6
In this ES6 example, we define function “adder” with a “rest parameter” called “numbers”. Note the three dots before the parameter name in the function...
read moreNew features in Javascript ES6
This page lists some of the new features of the latest version of Javascript as of this writing in 2016. It is the 6th edition of the ECMAScript Standard (known as ES6 or ECMAScript 2015). It...
read moreDefault function parameters in ES6
Here is an example of using default function parameters in ES6: You see that the browser displays “Hello John” because we passed in the value “John” into the sayHello...
read moreWhy Javascript location.reload does not work?
w3schools.com says that to reload a page, you use Javascript like this … location.reload(); And according to MDN, it works in all modern browser. But in rare situations, it doesn’t seem...
read moreThree Ways to Create a Javascript Class
Of the three ways to create a Javascript class, we start off with the most traditional way. 1. Using new operator on a constructor function to create Javascript class In Javascript, functions are...
read moreWhat is difference between bind, call, and apply in Javascript?
In Javascript, all function objects automatically have the methods “bind”, “call”, and “apply”. What is the difference between them? Javascript bind method First...
read moreConverting Between JSON and Javascript Object
You convert a Javascript object to JSON using JSON.stringify. This function is part of Javascript. You just need to pass it an Javascript object and it returns a string that is JSON. No extra...
read moreGet Query String Parameters using Javascript
In this tutorial, we will use Javascript to get the query string parameters from the URL. Suppose we have an URL like this … with the query string parameter “id” and...
read moreHow to Create a Right-Click Menu using JQuery
In this tutorial, we will create a right-click menu (better known as a context menu) that will come up when you right-click on the page … For Mac, you would do Ctrl-Click, since Mac mouse have...
read moreAll contents are opinions and are copyrighted and may contain display ads and ad links for which site may receive revenues from.
See Terms of Use and Privacy Policy.