Created
June 13, 2018 09:09
-
-
Save iamspathan/77f3902171997270b2c80c5c1749c498 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/xeduwolima
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 Hello(name) | |
{ | |
return 'Hello ' + name + '!'; | |
} | |
var y=Hello('Sohail'); | |
console.log(y); | |
function noReturn() | |
{ | |
//NO return | |
} | |
var h= noReturn(); | |
console.log(h); | |
function averageOfTwo(num1,num2) | |
{ | |
return (num1+num2)/2; | |
} | |
console.log(averageOfTwo(5,7)); | |
myFunction(); | |
function myFunction() { | |
console.log("Hello World"); | |
} | |
var foo='Hello String'; | |
function myName() | |
{ | |
return 'Sohail'; | |
} | |
var myString='Hello My name is ${foo}.\n String:${myFunction()}'; | |
console.log(myString); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">function Hello(name) | |
{ | |
return 'Hello ' + name + '!'; | |
} | |
var y=Hello('Sohail'); | |
console.log(y); | |
function noReturn() | |
{ | |
//NO return | |
} | |
var h= noReturn(); | |
console.log(h); | |
function averageOfTwo(num1,num2) | |
{ | |
return (num1+num2)/2; | |
} | |
console.log(averageOfTwo(5,7)); | |
myFunction(); | |
function myFunction() { | |
console.log("Hello World"); | |
} | |
var foo='Hello String'; | |
function myName() | |
{ | |
return 'Sohail'; | |
} | |
var myString='Hello My name is ${foo}.\n String:${myFunction()}'; | |
console.log(myString); | |
</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 Hello(name) | |
{ | |
return 'Hello ' + name + '!'; | |
} | |
var y=Hello('Sohail'); | |
console.log(y); | |
function noReturn() | |
{ | |
//NO return | |
} | |
var h= noReturn(); | |
console.log(h); | |
function averageOfTwo(num1,num2) | |
{ | |
return (num1+num2)/2; | |
} | |
console.log(averageOfTwo(5,7)); | |
myFunction(); | |
function myFunction() { | |
console.log("Hello World"); | |
} | |
var foo='Hello String'; | |
function myName() | |
{ | |
return 'Sohail'; | |
} | |
var myString='Hello My name is ${foo}.\n String:${myFunction()}'; | |
console.log(myString); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment