We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a381fed commit c7bed1fCopy full SHA for c7bed1f
if-else.js
@@ -3,7 +3,7 @@ function jalanSatu()
3
var nilai = 3;
4
if(nilai === 1)
5
{
6
- console.log("3");
+ console.log("1");
7
}else if(nilai === 2)
8
9
console.log("2");
@@ -12,5 +12,8 @@ function jalanSatu()
12
13
console.log("Salah");
14
}
15
+
16
+ if(nilai===3) console.log("3");
17
+ else if(nilai===1) console.log("1");
18
19
jalanSatu();
0 commit comments