When instantiating an object in JavaScript, (particularly when there are multiple objects being instantiated in the same script block) - is it good practice to wrap the instantiation in a try catch statement so if the object errors it doesn't affect any other objects within the script?
E.g is it best practice for this:
try{
new navigation();
}catch(e){
//handle exception for navigation fail
}
try{
new Accordian();
}catch(e){
//handle exception for accordion fail
}
as opposed to
new navigation();
new accordian();
and so on.....