#TIL

Extract Error Strings

Extract error types (and their message templates) into a separate file for cleaner code. The code examples in this article are written in JavaScript because that's what I'm most familiar with, but the principle applies to any language. handle-user-input.js: const handleUserInp…