I know this is a base question but I wanted to ask which is the better place to put "use strict" if all the code is enclosed in the $(function() {} - eg: this statement is at the top of the file.
either:
$(function(){
"use strict";
// jQuery methods go here...
});
or
"use strict";
$(function(){
// jQuery methods go here...
});
I assume the second one is more througher as (if at the very top of the file) will cover off all the contents regardless of where placed.
Is this correct?
thx Adam