Created
October 4, 2018 00:36
-
-
Save MirzaChilman/e9efdb4497049e9bb8c4b9e869719699 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/letucog
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
function tambah (a){ | |
return a+1 | |
} | |
function test(func, cond){ | |
if(func === cond){ | |
console.log('true') | |
}else{ | |
console.log(`false,expect ${cond}, but got ${func}`) | |
} | |
} | |
test(tambah(2),4) | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">function tambah (a){ | |
return a+1 | |
} | |
function test(func, cond){ | |
if(func === cond){ | |
console.log('true') | |
}else{ | |
console.log(`false,expect ${cond}, but got ${func}`) | |
} | |
} | |
test(tambah(2),4)</script></body> | |
</html> |
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 tambah (a){ | |
return a+1 | |
} | |
function test(func, cond){ | |
if(func === cond){ | |
console.log('true') | |
}else{ | |
console.log(`false,expect ${cond}, but got ${func}`) | |
} | |
} | |
test(tambah(2),4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment