Skip to content

Commit 7ad563f

Browse files
authored
わかりにくいヒントを消した。 (#715)
1 parent 1b11429 commit 7ad563f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

docs/1-trial-session/10-array/index.mdx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,18 +171,8 @@ const array2 = [-8, -7, -3, -1, -5];
171171

172172
:::
173173

174-
:::tip
175-
176-
今までのように仮の初期値を置く方法では、配列の各値が非常に大きな負の値であった場合に仮の初期値が返ってきてしまいます。
177-
178-
どうすればいいでしょうか?
179-
180-
:::
181-
182174
<Answer title="配列の最大値">
183175

184-
配列の最初の値を初期値に設定することで解消します。
185-
186176
```javascript
187177
const array1 = [3, 6, 8, 5, 0];
188178
const array2 = [-8, -7, -3, -1, -5];

0 commit comments

Comments
 (0)