回答編集履歴

1

追記

2017/05/19 01:15

投稿

s.t.
s.t.

スコア2021

test CHANGED
@@ -1,3 +1,47 @@
1
1
  BMI関数の呼び方が間違っていませんか?
2
2
 
3
3
  BMI(height,weight)になりそうな気がします。
4
+
5
+
6
+
7
+ 【追記】
8
+
9
+ 検証してみました
10
+
11
+
12
+
13
+ ```javascript
14
+
15
+ var height = 1.7;
16
+
17
+ console.log('height: ' + height);
18
+
19
+ var weight = 60;
20
+
21
+ console.log('weight: ' + weight);
22
+
23
+
24
+
25
+ // この下にコードを書いてください
26
+
27
+ function BMI(height,weight){
28
+
29
+ return weight/height/height;
30
+
31
+ }
32
+
33
+ console.log(Math.round(BMI(height,weight)));
34
+
35
+
36
+
37
+ function ProperWeight(height){
38
+
39
+ return height*height*22;
40
+
41
+ }
42
+
43
+ console.log(Math.round(ProperWeight(height)));
44
+
45
+ ```
46
+
47
+ これで表示されました。(日本語部分は割愛しています)