Q:

"use strict" for legacy browsers

i want to add "use strict"; statement in to my function. but it is not supported to legacy browser's like ie7,ie8. is there any way to achieve this functionality to legacy browsers.
can any one explain use of use strict with program. i know little bit .but i am not really understanding well about use of strict. but in my company they suggested follow ecma5 standards
Thanks in advance

A:

Well, you can just include the "use strict"; directive in your function, and if the browser does not support it, the directive will just be ignored. You would not want to rely on strict mode to make your function work.

