HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>This example will throw an error, Check your console.</p> <script> function myFunction(){ var txt = "Hello"; } myFunction(); // Error occurs console.log(txt); </script> </body> </html>
OUTPUT
×

Save as Private