<!DOCTYPE html>
<html lang="en-US">
<body>
<p>This example will throw an error. Check your console (Press F12)</p>
<p>In this example, we mistyped the method name (alert).</p>
<p>Try to replace, alerrt() with alert() and then click 'Run' button to alert a welcome message.</p>
<script>
// replace alerrt() with alert()
alerrt("Hello world");
</script> </body>
</html>