Score
0
Watch 25 Star 104 Fork 12

Gitee星球的小活动 / 第 0 届 代码编故事接力赛

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
让我们点燃程序员写作之魂,一人用代码写一段故事玩玩吧~ spread retract

Clone or download
js-a-sad-story 760 Bytes
Copy Edit Web IDE Raw Blame History
Canace authored 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();

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/Selected-Activities/Code-relay.git
git@gitee.com:Selected-Activities/Code-relay.git
Selected-Activities
Code-relay
第 0 届 代码编故事接力赛
master

Help Search

220309 7019f5b6 1899542 220318 4015cbb9 1899542