console.log()

オブジェクトのショートハンドプロパティ

 console.log({width, height});

console.assert()

 console.assert(num === 1, "Error. num must be 1");

console.trace()

 function one() { two(); }
 function two() { three(); }
 function three() { console.trace(); }
 
 one();
 
   ==>
     VM487:3 console.trace
     three @ VM487:3
     two @ VM487:2
     one @ VM487:1
     (anonymous) @ VM508:1
     undefined

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2021-12-06 (月) 13:56:10