JavaScript

Showing 1-9 of 89 results
EngineeringIcon ChevronBack-end

Using Express.js Routes for Promise-based Error Handling

by Vitaly Senko

Maintainable Express.js code after scaling means making common code more feature-rich while reducing boilerplate. Find out how to enable promise-based route code and centralize both error handling and normal-results handling in Express.js apps.

8 minute readContinue Reading
EngineeringIcon ChevronWeb Front-end

WebAssembly/Rust Tutorial: Pitch-perfect Audio Processing

by Peter Suggate

WebAssembly gives near-native performance to web apps and allows languages other than JavaScript—plus their libraries—to be used on the web. This tutorial leverages Rust and the Web Audio API to make a basic guitar tuner app that runs at 60 FPS, even on mobile.

24 minute readContinue Reading
EngineeringIcon ChevronBack-end

The Definitive Guide to DateTime Manipulation

by Punit Jajodia

Time and date manipulation is notoriously difficult. Developers encountering time zone rules, leap seconds, differences in locale-specific formatting are wise to resort to popular time and date manipulation libraries. But without thinking about how exactly they work, it's still easy to create all sorts of obscure bugs.

23 minute readContinue Reading
EngineeringIcon ChevronTechnology

Creating a Secure REST API in Node.js

by Marcos Henrique da Silva

As patterns go, REST APIs are so useful and ubiquitous that every web developer, regardless of language or platform, should know how to build one. In this article, Toptal Freelance JavaScript Developer Marcos Henrique da Silva shows how to create a simple and secure REST API for user management on Node.js.

13 minute readContinue Reading
EngineeringIcon ChevronTechnology

Full-stack NLP with React: Ionic vs Cordova vs React Native

by Shanglun Wang

JavaScript frameworks based on React can help you build a fast, reliable mobile app, but it’s not always easy to determine which framework is best for your project. Choosing the wrong framework can result in an app with slow and redundant code. JavaScript expert Sean Wang builds the same natural language processing mobile application using Cordova, Ionic, and React Native, then discusses the advantages and limitations of each.

25+ minute readContinue Reading
EngineeringIcon ChevronTechnology

Serializing Complex Objects in JavaScript

by Luke Wilson

The Tanagra.js library is designed to be simple and lightweight, and it currently supports Node.js and ES6 classes. The main implementation supports JSON, and an experimental version supports Google Protocol Buffers.

7 minute readContinue Reading
EngineeringIcon ChevronBack-end

Cabin Fever Coding: A Node.js Back-end Tutorial

by Kevin Bloch

Missing the luxury of a good, old-fashioned remote control when the laptop is beyond easy reach? Transform your old smartphone into a remote and learn some basic Node.js/Express/Pug along the way.

16 minute readContinue Reading
EngineeringIcon ChevronBack-end

The Need for Speed: A Toptal JavaScript Coding Challenge Retrospective

by Eva Bojorges Rodriguez

Toptal's JavaScript Speed Coding Challenge invited creative solutions from the beginning. As the week played out, competitors got closer and closer to the maximum theoretical score. Then something unexpected happened...

6 minute readContinue Reading
EngineeringIcon ChevronTechnology

Stale-while-revalidate Data Fetching with React Hooks: A Guide

by Avi Aryan

Inspired by stale-while-revalidate cache control logic, modern sites implement stale-while-refresh logic on the UI side. Thankfully, React Hooks make this logic painlessly reusable across components.

15 minute readContinue Reading

Join the Toptal® community.