1. For formatting JavaScript code is better to use Prettier. This will help in all examples to make the same formatting and it will look better. 1. Some examples are excessively complex and can be simplified.