Skip to main content

JavaScript

Exploring the JavaScript Date Object
Tutorials JavaScript
There are some great libraries out there to deal with dates in JavaScript, with Moment.js and date-fns being perhaps the two most popular. It’s very common however to have just some basic needs for playing with dates and using a library instead of the native JavaScript date object would be overkill.
How To Access Elements in the DOM
Tutorials Development JavaScript
Introduction> Introduction # In Understanding the DOM Tree and Nodes, we went over how the DOM is structured as a tree of objects called nodes, and that nodes can be text, comments, or elements.
An Introduction to JSON
Tutorials Conceptual Development JavaScript
Introduction> Introduction # JSON, short for JavaScript Object Notation, is a format for sharing data. As its name suggests, JSON is derived from the JavaScript programming language, but it’s available for use by many languages including Python, Ruby, PHP, and Java.
How To Use .map() to Iterate Through Array Items in JavaScript
Tutorials Development JavaScript
Introduction> Introduction # From the classic for loop to the forEach() method, various techniques and methods are used to iterate through datasets in JavaScript. One of the most popular methods is the .
How To Install Node.js on Debian 8
Tutorials Debian JavaScript Node.js
Introduction> Introduction # Node.js is a JavaScript platform for general-purpose programming that allows users to build network applications quickly. By leveraging JavaScript on both the front-end and the back-end, development can be more consistent and be designed within the same system.
How To Create Drag and Drop Elements with Vanilla JavaScript and HTML
Tutorials JavaScript
Introduction> Introduction # Dragging-and-dropping is a common user interaction that you can find in many graphical user interfaces. There are pre-existing JavaScript libraries for adding a drag-and-drop feature to your app.
ES6 Modules and How to Use Import and Export in JavaScript
Tutorials JavaScript
With ES2015 (ES6), with get built-in support for modules in JavaScript. Like with CommonJS, each file is its own module. To make objects, functions, classes or variables available to the outside world it’s as simple as exporting them and then importing them where needed in other files.
How To Use the Switch Statement in JavaScript
Tutorials Development JavaScript
Introduction> Introduction # Conditional statements are among the most useful and common features of all programming languages. How To Write Conditional Statements in JavaScript describes how to use the if, else, and else if keywords to control the flow of a program based on different conditions, which in JavaScript are often the result of user input.
How To Use Font Awesome 5 with React
Tutorials JavaScript React
Introduction> Introduction # Font Awesome is a toolkit for websites that provides icons and social logos. React is a coding library that is used for creating user interfaces. While the Font Awesome team has made a React component to promote integration, there are some fundamentals to understand about Font Awesome 5 and how it is structured.
Using While Loops and Do…While Loops in JavaScript
Tutorials Development JavaScript
Introduction> Introduction # Automation is the technique of making a system operate automatically; in programming, we use loops to automate repetitious tasks. Loops are one of the most useful features of programming languages, and in this article we will learn about the while and do.
Understanding Variables, Scope, and Hoisting in JavaScript
Tutorials Development JavaScript
Introduction> Introduction # Variables are a fundamental part of many programming languages, and are among the first and most important concepts for novice coders to learn. There are a number of different properties of variables in JavaScript, as well as several rules which must be followed when naming them.
How To Use JSON.parse() and JSON.stringify()
Tutorials JavaScript
Introduction> Introduction # The JSON object, available in all modern browsers, has two useful methods to deal with JSON-formatted content: parse and stringify. JSON.parse()> JSON.parse() # JSON.parse() takes a JSON string and transforms it into a JavaScript object.
How To Install Node.js on Ubuntu 20.04
Tutorials DigitalOcean App Platform JavaScript Ubuntu Ubuntu 20.04
Introduction> Introduction # Node.js is a JavaScript runtime for server-side programming. It allows developers to create scalable backend functionality using JavaScript, a language many are already familiar with from browser-based web development.
How To Add JavaScript to HTML
Tutorials Development JavaScript
Introduction> Introduction # JavaScript, also abbreviated to JS, is a programming language used in web development. As one of the core technologies of the web alongside HTML and CSS, JavaScript is used to make webpages interactive and to build web apps.
Exploring Async/Await Functions in JavaScript
Tutorials JavaScript
Introduction> Introduction # Promises give us an easier way to deal with asynchrony in our code in a sequential manner. Considering that our brains are not designed to deal with asynchronicity efficiently, this is a much welcome addition.
How To Modify CSS Classes in JavaScript
Tutorials JavaScript
Introduction> Introduction # In this tutorial, you will learn how to modify CSS classes using the JavaScript classList object for your DOM Manipulation project. The classList object allows you to adjust CSS classes that are assigned to an HTML element.
Mutable Immutable JavaScript
Tutorials JavaScript
When I first dived into JavaScript and programming; I never really thought about immutable data. I would say animal is panda, then animal is lion. var animal = 'panda'; animal = 'lion'; I was free to do whatever I wanted with my data!
How To Use the filter() Array Method in JavaScript
Tutorials JavaScript
Introduction> Introduction # The filter() Array method creates a new array with elements that fall under a given criteria from an existing array. In this article, you will learn about the filter() Array method.
How To Write Conditional Statements in JavaScript
Tutorials Development JavaScript
Introduction> Introduction # In programming, there will be many occasions in which you will want different blocks of code to run depending on user input or other factors. As an example, you might want a form to submit if each field is filled out properly, but you might want to prevent that form from submitting if some required fields are missing.
How To Use node-cron to Run Scheduled Jobs in Node.js
Tutorials Development DigitalOcean App Platform JavaScript Node.js
Introduction> Introduction # cron provides a way to repeat a task at a specific time interval. There may be repetitive tasks such as logging and performing backups that need to occur on a daily or weekly or monthly basis.