Future Studio Tutorials

Public tutorial on Thursday. Wednesday is only.

Nested Destructuring in JavaScript or Node.js

JavaScript introduced the destructuring assignment back in 2015. The destructuring assignment is a way to unpack properties of an object or items from arrays into variables using a syntax that looks like objects or arrays. This tutorial shows you how to use nested destructuring in JavaScript. {{outline}} Using Nested Destructuring …

Continue Reading

Node.js — Fix „Socket Hang Up“ Errors

Node.js published the first release of version 19.0.0 on October 18th, 2022. After that, we updated some of the Supercharge packages to run tests for Node.js 19 to ensure compatibility of the packages. One hiccup we noticed were the test runs for the @supercharge/sttp package. …

Continue Reading

Node.js — How to Count Words in a File

Sometimes you want to count the number of words in a given string. This string value may come from a variable, a database column, or the content of a file. For example, you can calculate the reading time of a text using a text’s word count. This tutorial shows …

Continue Reading

Vue.js 3 — How to Unmount an App and Remove from DOM

Vue.js 3 provides a handy createApp function allowing you to fluently create and mount a single page application. We’re currently working on a project that mainly uses native JavaScript and we’re adding Vue.js programmatically when creating and interacting with a complex modal. Using Vue.js for …

Continue Reading

Node.js — Constant for Platform-Specific Newline

Operating systems use different end-of-line markers indicating a new line after the given marker. For example, POSIX systems (like Linux and macOS) use \n and Windows uses \r\n. This tutorial shows you how to retrieve a platform-specific EOL marker depending on the operating system that runs your code. {{outline} …

Continue Reading
Page 1 of 82

Explore the Library

Find interesting tutorials and solutions for your problems.