Use Strict: How to check it?
I've read people recommending using the "use strict" option. As mentioned here
every major browser supports strict mode in their latest version, including Internet Explorer 10 and Opera 12. I wanted to test it with IE10 and I have the following segemnt code. IE 10 / FF did not issue an error message. What am I missing? How do I check that "use strict" actually works if I'm wrong?
<html>
<head>
<script type = "text/javascript">
"use strict";
function doSomething(value1, value1, value3) {
alert('hello');
}
</script>
</head>
<body>
hello
</body>
</html>
+3
source to share