Posts from JavaScript

How to Copy an Array in JavaScript

By Keshav J

In this tute, we will discuss how to copy an array in javascript. Before we get into the main topic, let me tell you about the array in brief. An array is a special variable that c.... Read More

Interactive California map in JavaScript

By Faruque Ahamed Mollick

In this tutorial, we are going to create an interactive map of California with JavaScript. California is so popular state of the United States. So let’s see how we can create.... Read More

Quote of the day Project in JavaScript and HTML

By Sumanth

In this post let’s learn how to completely implement the Quote of the day¬†project in HTML using¬†JavaScript. Here you will see all the required HTML and JS code that you can.... Read More

Sort array values alphabetically in JavaScript

By jatt01990

Introduction Sorting is one of the most common operations in programming. Arrays can also be sorted. In JavaScript, the sort() function is used to sort an array. The sort() functio.... Read More

Convert a JavaScript array into JSON

By jatt01990

Introduction JavaScript Object Notation or commonly known as JSON is a popular way of interchanging data. It is language independent and most of the modern programming languages su.... Read More

Create and use dynamic variable names in JavaScript

By Faruque Ahamed Mollick

Dynamic variables are those types of variables that don’t have any specific name in the code through hard coded. A dynamic variable name is auto-generated while running the p.... Read More

Convert a string into a variable name in JavaScript

By Faruque Ahamed Mollick

Did you ever think to use a JavaScript string as a variable name? For example, suppose we have a string given below: var myString = "number"; Can you use the string “number&#.... Read More

Use Strict in JavaScript | Strict mode

By Keshav J

In this tute, we will discuss use strict in JavaScript. You can also call it the strict mode. What is Use Strict? The "use strict" is a JavaScript directive used to execute JavaScr.... Read More