1 Star 0 Fork 13

gao510551995 / 第 0 届 代码编故事接力赛

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
js-a-sad-story 760 Bytes
一键复制 编辑 原始数据 按行查看 历史
Canace 提交于 2020-03-24 17:07 . add js-a-sad-story.
// 这是一个年轻小伙子的悲伤故事,故事可以追述到那一天,动次打次动次打次动次打次…………………………
class Story {
constructor() {
this.name = 'kiki';
this.hair = '金';
this.eyes = '碧';
this.song = '普通的 disco';
this.sound = '动次打次';
}
init() {
console.log(
`有一个${this.hair}发${this.eyes}眼的男孩叫做 ${
this.name
}, 他没事的时候喜欢${this.sound.repeat(2)}的在街上听着他最喜欢的${
this.song
}, ${this.sound.repeat(
3
)},就在那普通的一天,悲剧的事发生了,${this.sound.repeat(3)}…………`
)
}
}
const tellStory = new Story();
tellStory.init();
1
https://gitee.com/lovezy/Code-relay.git
git@gitee.com:lovezy/Code-relay.git
lovezy
Code-relay
第 0 届 代码编故事接力赛
master

搜索帮助