Search Results for JavaScript

Find the maximum and minimum values of an array in JavaScript

By jatt01990

There are a couple of ways to find the maximum and minimum values of an array in JavaScript. Method 1 – Using min() and max() The fastest way is by using the min() and max() .... 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

Get index or position of a JavaScript array item

By Faruque Ahamed Mollick

Each javaScript array item has an index number that tells us the position of that item in that array. Here in this task, we are going to take a JavaScript array and then find the i.... Read More

How to solve Tiling Problem in JavaScript

By Swastik Panja

In this tutorial, we will learn how to solve the Tiling Problem in Javascript. Many of you already know what a Tiling Problem is, still I am going to explain it. We will be usingĀ .... Read More

Related Posts