Article
A confirmation dialogue is a UI pattern where the user will be given a choice to continue with their action or to cancel it. It is commonly used with destructive or irreversible actions, to make sure that the user would indeed want to proceed. In this article, we'll be implementing...
Guest Contributor
Working with arrays in JavaScript is a common activity. Sometimes we get a variable in JavaScript that we need to be an array, but we aren't sure that it is. Non-primitive data types in JavaScripts are all objects (functions have their own type, but they too are objects). As a...
Notifications provide a great way to engage users of your applications and can be used to provide or solicit feedback. In this tutorial, we will be examining how to send notifications using Node.js and node-notifier. node-notifier is a library for sending cross-platform native notifications in Node JS. Creating a...
Aniuchi Adaobi
An array is a linear data structure and arguably one of the most popular data structures used in Computer Science. Modifying an array is a commonly encountered operation. Here, we will discuss how to add an element in any position of an array in JavaScript. An element can be added...
Closures are a somewhat abstract concept of the JavaScript language and sneak into the compiler-side of programming. However, understanding how JavaScript interprets functions, nested functions, scopes and lexical environments is imperative to harnessing its full potential. In this article, we will try to demystify said concepts and provide a simple...
Abhilash Kakumanu
Arrays are one of the most widely used data structures in Computer Science. While dealing with a list of items (array), we are often required to look for a particular value in the list. JavaScript contains a few built-in methods to check whether an array has a specific value, or...
The main purpose of writing code is so that a computer can interpret it as commands. However, it's also important that the code we write is also easily interpretable by fellow developers. Have you ever gone back to a project and had difficulty understanding the internal logic? Well that's probably...
Almost every website involves collecting user input through html forms. Whenever we collect user data, we have to validate it. In Computer Science, data validation is the process of checking whether the data entered is sensible and reasonable. Consider developing a form for email subscriptions. In this case, we want...
We as software developers often stumble into situations where we need to insert a dose of randomness into our code. In this article, we will look at how to generate random numbers in JavaScript. We will also touch upon a few built-in methods to deal with random numbers. By the...
© 2013-2025 Stack Abuse. All rights reserved.