Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <p>Local "use strict" declaration.</p> <p>Activate debugging in your browser to see the error report.</p> <script> y= 3.14; // This will not cause an error. myFunction(); // This will cause an error. function myFunction() { "use strict"; x = 3.14; } </script> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_strict_local by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:36:08 GMT --> </html>
Result:
Try it Yourself - © w3schools.com