Latihan study case max min Beranda › Forums › Belajar Menjadi Full Stack Web Developer Tingkat Pemula › Latihan study case max min This topic has 1 reply, 2 voices, and was last updated 3 years, 8 months ago by jihadhamasd. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts March 11, 2023 at 6:58 AM #193049 jihadhamasdParticipant saya sudah mengikuti codingan yang sesuai di video tapi outpunya max:10 dan min: 10 juga function NilaiMiniMax(arrayAngka){ var max= arrayAngka[0]; min= arrayAngka[0]; for(var i= 0; i<arrayAngka.Length; i++){ if(max<arrayAngka[i]){ max=arrayAngka[i]; } if(min >arrayAngka[i]){ min=arrayAngka[i]; } } return { max: max, min: min } } console.log(NilaiMiniMax([10,3,5,12,7])); April 28, 2023 at 11:16 AM #194860 Coach VincentModerator Utk penulisan arrayAngka.Length masih salah Seharusnya arrayAngka.length Terima kasih Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Login with your Social ID Log In