Closures vs Private in TypeScript: If We Have private and #, Why Do We Still Need Closures?

When TypeScript gets converted to JavaScript, the private keyword is not preserved as a JavaScript runtime privacy mechanism.
Types vs Interfaces in Typescript

TL;DR; The main concept interfaces offer over types is declaration merging. On the other side, types can do a lot more than interfaces (mapped types, conditional types, etc) Both can define object structure and in simple case both work identically The major differences are — Interfaces have Declaration Merging This same will not work with type […]