DEV Community

loading...

Discussion on: Namespacing in JavaScript

Collapse
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.

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

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