What's the reason of the following syntax?

前端 未结 0 1477
情歌与酒
情歌与酒 2020-12-10 09:18

Studying about closures, I looked at the Developer\'s Mozilla article about it and saw the code below:

var counter = (function() {
  var privateCounter = 0;
          


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