Skip to content

Commit c7bed1f

Browse files
committed
end of if-else niomic-id#2
1 parent a381fed commit c7bed1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

if-else.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function jalanSatu()
33
var nilai = 3;
44
if(nilai === 1)
55
{
6-
console.log("3");
6+
console.log("1");
77
}else if(nilai === 2)
88
{
99
console.log("2");
@@ -12,5 +12,8 @@ function jalanSatu()
1212
{
1313
console.log("Salah");
1414
}
15+
16+
if(nilai===3) console.log("3");
17+
else if(nilai===1) console.log("1");
1518
}
1619
jalanSatu();

0 commit comments

Comments
 (0)