JavaScript

JavaScript (also referred to as ‘javascript’ or JS) is a high-level, prototype-based, dynamic scripting language used to create interactive web pages and applications. Its flexibility and front and back-end capabilities make JavaScript a popular programming language. Some of the useful features of JavaScript include storing values in variables, performing operations on strings, and triggering or acting on events that happen in the DOM.

featured tutorialHow To Set Up a Node.js Application for Production on Ubuntu 20.04
Node.js is an open-source JavaScript runtime environment for building server-side and networking applications. The pl...

Kathleen Juell, and Lisa Tagliaferri • Published on June 30, 2020 · Updated on March 31, 2021

featured tutorialHow To Use .map() to Iterate Through Array Items in JavaScript
One of the most popular methods of iterating through datasets in JavaScript is the .map() method. .map() creates an a...

William Imoh • Published on December 12, 2019 · Updated on August 24, 2021

featured tutorialHow To Add JavaScript to HTML
This tutorial will go over how to incorporate JavaScript into your web files, both inline into an HTML document and a...

Lisa Tagliaferri • Published on June 30, 2017 · Updated on August 20, 2021

Subscribe to JavaScript
Get notified when new articles on JavaScript are published.
    All
  • 20 Results
    Newest
    All time
    English
    • Tutorial

      How To Access Elements in the DOM

      In order to be proficient at accessing elements in the DOM, it is necessary to have a working knowledge of CSS selectors, syntax and terminology as well as an understanding of HTML elements. In this tutorial, we will ...
      0 days agoBy Tania RasciaJavaScriptDevelopment
    • Tutorial

      How To Deploy a React Application with Nginx on Ubuntu 20.04

      In this tutorial, you’ll deploy a React application from your local machine to an Ubuntu 20.04 server running Nginx. You’ll build an application using Create React App, use an Nginx config file to determine where to d...
      9 days agoBy Joe MorganJavaScriptReactUbuntuDeployment
    • Tutorial

      Object.values and Object.entries in JavaScript

      Extract arrays of values or of key-value pairs using the new Object.values and Object.methods available with ES2017 (ES8).
      28 days agoBy Alligator.io, Kong YangJavaScript
    • Tutorial

      Introduction to Maps in JavaScript

      Maps were introduced with ES6/ES2015, and they are similar to objects. Here’s an overview of using maps and the benefits over objects.
      28 days agoBy Alligator.io, Kong YangJavaScript
    • Tutorial

      How To Use the JavaScript Developer Console

      This tutorial will go over how to work with the Console in JavaScript within the context of a browser, and provide an overview of other built-in development tools you may use as part of your web development process.
      1 month agoBy Lisa TagliaferriJavaScriptDevelopment
    • Tutorial

      How To Test a React App with Jest and React Testing Library

      Obtaining solid test coverage is imperative for building confidence in your web application. In this tutorial, you will test asynchronous code and interactions in a sample project containing various UI elements. You w...
      2 months agoBy Alyssa HollandJavaScriptReactDevelopment
    • Tutorial

      Getting Started With Angular Using the Angular CLI

      Angular is a popular JavaScript framework that creates interactive web, mobile, and desktop applications. The Angular CLI simplifies the process of getting started with Angular. This tutorial covers building an Angula...
      2 months agoBy PaulHallidayJavaScriptAngularHTMLCSSTypeScriptDevelopment
    • Tutorial

      How To Set Up a React Project with Vite

      This tutorial will scaffold a new React App using the Vite tool, which is a lightweight alternative to Create React App. You will create a basic app with a new component, CSS, and an image file, and prepare an optimiz...
      2 months agoBy tamal JavaScriptReactDevelopment
    • Tutorial

      How To Install Node.js on Ubuntu 22.04

      In this guide, we will show you three different ways of getting Node.js installed on an Ubuntu 22.04 server: using apt to install the nodejs package from Ubuntu’s default software repository, using apt with an alterna...
      2 months agoBy Alex GarnettDigitalOcean App PlatformNode.jsJavaScriptUbuntuUbuntu 22.04Interactive
    • Tutorial

      What's the Spread Operator Used For in JavaScript?

      A short guide about the JavaScript spread operator, introduced with ES6/ES2015, and some of it’s practical uses.
      3 months agoBy William LeJavaScript
    • Tutorial

      Introduction to Iterables and Iterators in JavaScript

      In this post, we’ll take a quick peek at JavaScript iterables and how to implement them with JS objects using iterators.
      3 months agoBy Vijay PrasannaJavaScript
    • Tutorial

      What's New in Webpack 4

      Webpack is a static module bundler for modern JavaScript applications. It helps to bundle all of the different modules and packages them into one or more bundles. This article explores the new features and improvement...
      3 months agoBy Yomi EluwandeJavaScript
    • Question

      Connection to nodejs (express) refused

      Hello everyone, I’m a long term programmer, but haven’t used nodejs much in my code. Now I need to use it in my current code and I’ve ran into a problem that I can’t seem to figure out myself, I have googled a lot but...
      2 answers3 months agoBy Jesper SørensenJavaScriptNode.js
    • Tutorial

      How To Customize React Components with Props

      Props are arguments that you provide to a JSX element in a React application. They look like standard HTML props, but they aren’t predefined and can have many different JavaScript data types, including numbers, string...
      3 months agoBy Joe MorganJavaScriptReactDevelopmentProgramming Project
    • Tutorial

      How To Use the Node.js REPL

      The Node.js Read-Eval-Print-Loop (REPL) is an interactive shell that processes Node.js expressions. The shell reads JavaScript code the user enters, evaluates the result of interpreting the line of code, prints the re...
      3 months agoBy Stack AbuseJavaScriptInteractiveNode.jsDevelopment
    • Tutorial

      How To Write and Run Your First Program in Node.js

      Node.js is a popular open-source runtime environment that can execute JavaScript outside of the browser using the V8 JavaScript engine, which is the same engine used to power the Google Chrome web browser’s JavaScript...
      3 months agoBy Stack AbuseJavaScriptInteractiveNode.jsDevelopment
    • Tutorial

      How To Work with Files Using Streams in Node.js

      Streams are an efficient way to handle files in Node.js. In this tutorial, you’ll create a command-line program, and then use it with streams to read, write, copy, and transform files.
      3 months agoBy Adaobi AniuchiJavaScriptInteractiveNode.jsDevelopment
    • Tutorial

      How To Write End-to-End Tests in Node.js Using Puppeteer and Jest

      End-to-end testing (e2e for short) is a process in which the entire lifecycle of an application is tested from a user’s perspective in a production-like scenario. In this tutorial, you will write an e2e test in Node.j...
      3 months agoBy Gbadebo BelloJavaScriptDevelopmentNode.js
    • Question

      I have set up this pipeline on bitbucket to build my Gatsby app into a DigitalOcean droplet, but it fails.

      We have a bitbucket repo done with React (GatsbyJS), and WP CMS, it builds normally on my local machine, also through SSH on DigitalOcean droplet. But when I want automate the task through this pipeline, it fails, why...
      No answers yet4 months agoBy GMD DevsDigitalOcean DropletsGatsbyJSJavaScript
    • Question

      How to Arrange string data if both data have different spellings

      I’ve been given a task to sort 1400 city names which has wrong spellings. with another data which has the right spellings. I want the result to be shown as the right and wrong data alligned together next to each other.
      1 answer4 months agoBy SandyNavyStarfishC (language)DatabasesJavaScript