Why does only the variable I put at the bottom get executed without console.log?

后端 未结 0 1804
情话喂你
情话喂你 2021-01-27 05:17
const a = [1, 2, 3];
const doubled = a.map((num) => {
  return num * 2;
});

const x = 2;

x;
doubled;

When I run the above program in console, only

相关标签:
回答
  • 消灭零回复
提交回复
热议问题