Articles tagged in: Node.js



learn hapi — What is JOSE in JWT

You may read the “JOSE” keyword when searching the Internet for details on JSON web tokens. Well, you’re likely to find “JOSE” in references to the JWT specification and not in actionable tutorials. What is JOSE in combination with JWT? That’s a good question! JWT defines the token …

Continue Reading

Node.js — for…of vs. for…in Loops

Node.js ships with the for…of and for…in loops. These two loops provide a convenient iteration besides the common for loop. Both loops give you a clean syntax for iterations and quick access to keys or values. This tutorial explores both loops in more detail and shows you …

Continue Reading

Node.js — How to Reset and Empty an Array

When emptying an array in JavaScript/Node.js you’ll surely think of reassigning your array’s value to a new array. There’s another way to reset an array: set the length to zero. Let’s have a look at both ways. {{outline}} Assign an Empty Array A common …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.