Created
June 1, 2022 01:50
-
-
Save fkmhrk/b026aac04f67c10b4e5981555b7ea19f to your computer and use it in GitHub Desktop.
JavaScript Lesson 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 配列の中から、最大のものを取り出す関数にしよう | |
function findMax(arr) { | |
// 空欄 | |
} | |
const result1 = findMax([2, 5, 1, 8, 3]) | |
console.log(result1) // 8とでる | |
const result2 = findMax([10, 49, 1380, 7, 269, 1095]) | |
console.log(result2) // 1380とでる |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment