所需輸出: -我應該添加什麼代碼才能使用JavaScript顯示以下輸出?
錯誤:您已斷開連接!
警告:你已經閒置15分鐘後
// Code starts here
// Do not edit this function
function output(msg) {
console.log(this.type, ":", msg)
}
// You may edit below this line not including the .output functions.
var errorMsg = ;
var warningMsg = ;
// Do not edit below this line.
errorMsg.output('You have been disconnected!');
warningMsg.output('You have been idle for 15 minutes');
請重新格式化您的代碼並編輯您的問題。你想顯示特定網站上的錯誤或最新情況? –
@LajosArpad不作業的傢伙,我只是想學習一些新的東西,並從互聯網上解決一些問題..... :) –