回答編集履歴

1

コード

2017/02/09 04:09

投稿

YOS_G-sepc
YOS_G-sepc

スコア29

test CHANGED
@@ -2,13 +2,17 @@
2
2
 
3
3
  ```js
4
4
 
5
- const LONG_MESSAGE = "LongCharacterLongCharacterLongCharacterLongCharacterLongCharacterLongCharacterLongCharacterLongCharacter";
5
+ const readline=require("readline");
6
6
 
7
7
 
8
8
 
9
9
  function progress(par){
10
10
 
11
+ const LONG_MESSAGE = "LongCharacterLongCharacterLongCharacterLongCharacterLongCharacterLongCharacterLongCharacterLongCharacter";
12
+
13
+
14
+
11
- var empty=" ";
15
+ const empty=" ".repeat(10);
12
16
 
13
17
  var gauge=("=".repeat(par)+empty).slice(0,10);
14
18
 
@@ -18,11 +22,9 @@
18
22
 
19
23
 
20
24
 
21
- const readline=require("readline");
22
-
23
25
  const g=(function*(){
24
26
 
25
- for(var i=0;i<=10;i++){
27
+ for(let i=0;i<=10;i++){
26
28
 
27
29
  yield setTimeout(()=>g.next(),200);
28
30