How to type the scope?

前端 未结 0 1273
抹茶落季
抹茶落季 2021-02-12 18:18

I am thinking about something like this in JavaScript:

function foo() {
  var a = 10
  console.log(b)
  var b = 20
  console.log(c)
  let c = 30
  console.log(d)
         


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