+ 1
Is it necessary to begin new object in Java Script with a capital letter?
2 Respostas
+ 1
Nope. Won't make a difference in terms of necessity and is really just up to what coding style you subscribe to. Personally, I use camelCase for most variables and such, and I use PascalCase for things like functions. So do whatever is pleasing to you, or do whatever is required by the team you're working so that the code is consistent and more easily maintainable when everyone using same system.
+ 1
Thank you