How to create enums in JS or TS
JavaScript does not offer any build in way how to create enums so we have to use a workaround. On the other hand, TypeScript has its way, or two, how …
JavaScript does not offer any build in way how to create enums so we have to use a workaround. On the other hand, TypeScript has its way, or two, how …
Scope is set of rules that determines where and how a variable can be referenced or is visible. Because we can nest blocks or functions inside another …
Guard clauses (guard, guard code or guard statement) is technique to write cleaner and more readable code. Guard The definition of guard clause by …
Abstract factory is a creational design pattern that creates objects that follow a general pattern. Abstract factory is considered to be an another …
Design patterns are general reusable solutions to common problems in software design that software engineers face during software development. It …
Singleton pattern is a creational design pattern that restricts the initialization of a class (or object in general) to single instance while …
Every event is a special object used in browsers to signal that something happened to a HTML element. And JavaScript can be used to react to that …