<script type="text/javascript"> try { var a = 1; b = 1; delete a; delete b; alert(a); alert(b); } catch (e) { alert('Error: ' + e.message); } </script>