Sublime Text
<!DOCTYPE html> <html> <body> <script> try{ var numb = 1; numb.toUpperCase(); }catch(err){ document.write(err); document.write("<br>"); document.write("Loại lỗi: " + err.name); document.write("<br>"); document.write("Thông báo lỗi: " + err.message); } </script> </body> </html>
<!DOCTYPE html> <html> <body> <script> try{ var numb = 1; numb.toUpperCase(); }catch(err){ document.write(err); document.write("<br>"); document.write("Loại lỗi: " + err.name); document.write("<br>"); document.write("Thông báo lỗi: " + err.message); } </script> </body> </html>