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.