Bắt lỗi Debug trực tiếp ngay trên script¶ Dùng console.log Dùng try…catch Dùng throw Dùng debugger¶ Dùng breakpoint Dùng Variable và Watch Dùng debug console Dùng logpoint Dùng REPL Dùng unit test¶