This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am farridkun on github. | |
* I am farridkun (https://keybase.io/farridkun) on keybase. | |
* I have a public key ASAWcpjxaznyomR9w3t1uiACfVRv5WbCxlaf95p-ZfLIHwo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// deklarasi variable & inputan | |
let input = prompt("Masukan angka"); | |
// cek, jika bukan angka & angka >= 0 (tidak minus) | |
if (!isNaN(input) && input >= 0) { | |
// cek, jika angka di modulus2 == 0 | |
if (input % 2 === 0) { | |
// Maka genap | |
alert("Ini adalah genap"); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function warnTheSheep(queue) { | |
// your code here | |
} | |
// Test Function do not edit | |
function Test(fun, result) { | |
console.log(fun === result); | |
} | |
// Test assertions |