Edit This Code:
<!DOCTYPE html>
<html>
<body>

<h1>With "use strict":</h1>
<h3>Deleting an udeletable property is not allowed.</h3>

<p>Activate debugging in your browser (F12) to see the error report.</p>

<script>
"use strict";
delete Object.prototype;   // This will cause an error
</script>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy