Pengulangan dengan for dan while Beranda › Forums › Belajar Menjadi Full Stack Web Developer Tingkat Pemula › Pengulangan dengan for dan while This topic has 1 reply, 2 voices, and was last updated 3 years, 6 months ago by Coach Vincent. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts February 4, 2023 at 1:37 PM #192051 Renata AyuParticipant kak mau nanya, kalau ada soal: Buatlah koding untuk: cetak angka 1 sampai 10 menggunakan for dan while. lalu jawabanku: //For for(var i=1; i<11, i++) { console.log (i); } //while var i=1 while (1<11) { console.log (i); } boleh gak ya..? apa hasilnya beda? kalau jawaban yg di pelajaran, i<= 10 terimakasih sebelumnya April 28, 2023 at 11:22 AM #194867 Coach VincentModerator Bisa juga kak. Selama jawabannya benar sudah oke. 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