Sublime Text
<!DOCTYPE html> <html> <body> <script> try{ var numb = 12.4514; numb.toPrecision(500); }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 = 12.4514; numb.toPrecision(500); }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>