Welcome to examples.dev

JavaScript's Object.freeze and TypeScript's Readonly

JavaScript's Object.freeze and TypeScript's Readonly

Published

Do you want static or runtime immutability, or both? In this article I will show you how to combine Object.freeze with Readonly to get the best of both worlds.

The Most Convoluted JavaScript Fizz Buzz Solution

The Most Convoluted JavaScript Fizz Buzz Solution

Published

Finding the correct level of decomposition is sometimes challenging. In this article, I will take decomposition to the extreme creating a wildly convoluted Fizz Buzz solution and share my feelings on the correct level of decomposition.

JavaScript Named Parameters

JavaScript Named Parameters

Published

I find JavaScript’s lack of named parameters frustrating. In this article, I will show you how you can get the same effect and as a bonus, show you how to achieve default values.