2.) Stick to Monomorphism: Let’s take a look at Monomorphism with the help of an example: Suppose you have a function named ‘add’ and you expect two numbers ‘x’ and ‘y’ and return x + y. If the function is being called internally many times, V8 would optimize this function in the machine code if it sees that you are only calling it with two Numbers and would stop calling it in the traditional way and just statically call it in the Machine Code.
4.) Don’t pollute prototypal chains on native data structures: Don’t use libraries that prototype on top of existing data structures.
5.) Modern Syntax: Always use modern syntax this means using Async/Await over Promises and Promises over Callbacks. This not only helps in readability but also increases performance as well.