Nowdays, i create a .js file with a lot of functions and then I link it to my html pages. That\'s working but I want to know what\'s the best way (good practices) to insert js i
A simple idea is to use one object that represents your namespace:
var NameSpace = { Person : function(name, age) { } }; var jim= new NameSpace.Person("Jim", 30);