Posts from JavaScript

Declare optional function parameters in JavaScript

By Samim Raja Mollick

In this tutorial, we will learn how to declare optional function parameters in JavaScript during defining the function. The optional function parameters can be defined by assigning.... Read More

Get selected value in dropdown list using JavaScript

By HETVI JAIN

In this article, we will focus on how to get the selected value in the dropdown list in JavaScript.There are two ways to achieve that. Using Value Property Using selectedIndex prop.... Read More

Format numbers as currency strings in JavaScript

By Samim Raja Mollick

In this tutorial, I will show you how to format numbers as currency strings in JavaScript. The currency strings represent numbers in a specific currency format. The currency symbol.... Read More

Extend an existing JavaScript array with another array, without creating a new array

By Samim Raja Mollick

This tutorial will show you how to extend an existing array with another array, without creating a new array in JavaScript. We can extend an existing array with another array in mu.... Read More

Node.js callbacks in exported modules

By HETVI JAIN

In this tutorial, we will see how to use callbacks in exported modules. This is a very important concept and one of its applications is error handling. We will be using an import a.... Read More

How to Expire session after a specific time of inactivity in Express.js

By HETVI JAIN

In this article, we will learn how to expire the session after a specific time of inactivity in Express.js. For this, we would be requiring an express-session module. Expiring a se.... Read More

How to export multiple functions in JavaScript

By HETVI JAIN

In this article, we will learn about the export module in JavaScript. It allows you to export different sections of files into other files so that we can utilize the function in th.... Read More

Check if a variable is an array in JavaScript

By Samim Raja Mollick

This tutorial will show you how you can check if a variable is an array or not in JavaScript. For this purpose, we will use Array.isArray method and instanceof operator. Using Arra.... Read More

Related Posts