【文件属性】:
文件名称:bottles_of_beer
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-21 19:59:28
JavaScript
99瓶啤酒练习
// test3-工作正常! var bottle =“ bottles”; for(counter = 99; counter> = 1; counter = counter-1){if((counter <= 99){console.log(counter +“” + bottles +“啤酒在墙上,” + counter +“” + bottles +“啤酒。”); console.log(“放下一个,然后传给它,” +(counter-1)+“” +瓶+“ +” +“墙上的啤酒。”); }
if (counter == 1) {
console.log("No more bottles of beer on the wall. Go to the nearest beer store to stock up!");
}
}
// test3使用单数/复
【文件预览】:
bottles_of_beer-master
----index.html(175B)
----main.js(6KB)
----.gitignore(0B)
----readme.md(1KB)