SWITCH CASE JAVASCRIPT Beranda › Forums › Basic Front-End Web Development › SWITCH CASE JAVASCRIPT Tagged: @switchcase This topic has 1 reply, 2 voices, and was last updated 7 months, 2 weeks ago by Coach Vincent. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts March 23, 2026 at 4:08 PM #272324 akunitboxParticipant var hari = 5; switch(hari) { case 1: console.log(“hari senin”); break; case 2: console.log(“hari selasa”); break; case 3: console.log(“hari rabu”); break; case 4: console.log(“hari kamis”); break; case 5: console.log(“hari jumat”); break; case 6: console.log(“hari sabtu”); break; case 7: console.log(“hari minggu”); break; default: console.log(“Hari tidak valid”); } Halo izin bertanya apakah sudah benar kode nested if diatas? March 27, 2026 at 11:27 AM #272536 Coach VincentModerator untuk koding di atas bukan nested if, tetapi switch case. untuk nested if adalah ada conditional dalam conditional terima kasih This reply was modified 7 months, 2 weeks ago by Coach Vincent. 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