Tutorials on Web Development, Programming, and Web Design

Rest parameter in ES6

In Tutorials

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 more

New features in Javascript ES6

In Articles

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 more

Default function parameters in ES6

In Tutorials

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 more

Why Javascript location.reload does not work?

In Articles

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 more

Three Ways to Create a Javascript Class

In Articles

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 more

What is difference between bind, call, and apply in Javascript?

In Articles

In Javascript, all function objects automatically have the methods “bind”, “call”, and “apply”.  What is the difference between them? Javascript bind method First...

read more

Converting Between JSON and Javascript Object

In Articles

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 more

Get Query String Parameters using Javascript

In Tutorials

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 more

How to Create a Right-Click Menu using JQuery

In Tutorials

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 more

Learn Web Tutorials is hosted by Hostmonster and design based on Wordpress template by Elegant Themes
All 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.