Home
<!DOCTYPE html> <html> <body> <h1>Demo: strict mode</h1> <p id="errorMessage"></p> <script> "use strict"; try { with (Math){ x = abs(200.234, 2); // error }; } catch(ex) { document.getElementById("errorMessage").innerHTML = ex; } </script> </body> </html>
Result: