DEV Community

Discussion on: Namespacing in JavaScript

gouravsingh2580 profile image
Gourav Singh

There's a much better & simpler way to do it without using namespacing. Use const while declaring further iteration instead of var or let.

himanshutiwari15 profile image
Himanshu Tiwari ๐ŸŒผ Author • Edited on

Thanks you took time to comment and have read
But I think that declaring const every time will result in many number of variables and that becomes harder for me to handle.
BTW good to know your thoughts