0 votes
in JavaScript by
What are the benefits of initializing variables in Javascript?

1 Answer

0 votes
by

It is recommended to initialize variables because of the below benefits,

  1. It gives cleaner code
  2. It provides a single place to initialize variables
  3. Avoid undefined values in the code
...