📜  一个自称为 js 的函数 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:21.492000             🧑  作者: Mango

代码示例1
(function(){
    for (let i = 1; i < 20; i++){
      if ((i % 2) === 0) console.log(i + ' ');
    }
  })();

//you don't have to call it, it'll just show you the result