What does it mean if console.log(4) outputs undefined in Chrome Console?

后端 未结 2 2004
执念已碎
执念已碎 2020-11-27 08:03

I used the Chrome Console to write a simple statement:

console.log(4)

and received the Output:

4

2条回答
  •  一向
    一向 (楼主)
    2020-11-27 08:26

    I've tested it and even with a preset variable it did not work in my Safari:

    i = 2;
    console.log(i);
    

    This seems to explain the bug that WebKit (engine of both Chrome and Safari) has: Link

提交回复
热议问题