Article
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...
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...
Hoisting is a JavaScript behavior commonly known for making variables and functions available for use before the variable is assigned a value or the function is defined. In effect, it puts variable, function and class declarations to the top of their scope (the global scope or a function) before execution....
Guest Contributor
NPM stands for Node Package Manager and refers to either the online project repository or the Command Line Interface (CLI) tool used to interact with the online repository. Currently, NPM is the world's largest software registry with over 1.4M+ code packages. For example, if you wanted to use Node....
The PDF format is one of the most common document formats for transferring information. In dynamic web applications, you might need to export data into a document and PDF is usually a popular option. In this article, we will discuss how to generate PDF files in NodeJS using the NPM...
Aniuchi Adaobi
A web application often needs to communicate with web servers to get various resources. You might need to fetch data from or post data to an external web server or API. Using client-side JavaScript, this can be achieved using the fetch API and the window.fetch() function. In NodeJS, several...
NoSQL brought flexibility to the tabular world of databases. MongoDB in particular became an excellent option to store unstructured JSON documents. Data starts as JSON in the UI and undergoes very few transformations to be stored, so we get benefits from increased performance and decreased processing time. But NoSQL does...
Leandro Cofre
Working with files is a common task with any programming language. File manipulation requires us to know their location. One of the most fundamental ways to interact with files is to list files in a directory. In this article, we'll be using Node.js and the built-in fs module as...
David Landup
© 2013-2024 Stack Abuse. All rights reserved.