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 |
|