BARCO – MEAN Architect – NodeJS developer Interview Questions and Answer
what is tail call optimization ?
TCO (Tail Call Optimization) is the process by which a smart compiler can make a call to a function and take no additional stack space.
Recursive function approach has a problem. It builds up a call stack of size O(n), which makes our total memory cost O(n). This makes it vulnerable to a stack overflow error, where the call stack gets too big and runs out of space. Tail Cost Optimization (TCO) Scheme. Where it can optimize recursive functions to avoid building up a tall call stack and hence saves the memory cost.
what is Map, Set, WeakMap and WeakSet ?
Map is a collection of keyed data items, just like an Object. But the main difference is that Map allows keys of any type.
how to do peer to peer communication in ANgular ?
what is directive & components in angular ?
if loop functions are removed from script, how can you achieve same functionality ?
how to drop both data and collection in mongodb ?
what is generic types in Typescript ? advantages ?
how to define custom types in Typescript ?
how to capture the process specific exceptions in NodeJS ?
how do you print name of file currently executing in NodeJS ?
how to use custom pipes in Angular ? can you pass additional parameters in custom pipes ?
what is the max data can be stored in a mongodb document ?
how to achieve variable length documents in mongodb ?
how do you set auto increment field in mongodb ?