Skip to content

Instantly share code, notes, and snippets.

@MirzaChilman
Created October 4, 2018 00:36
Show Gist options
  • Save MirzaChilman/e9efdb4497049e9bb8c4b9e869719699 to your computer and use it in GitHub Desktop.
Save MirzaChilman/e9efdb4497049e9bb8c4b9e869719699 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/letucog
<!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>
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