Created
December 15, 2018 08:14
-
-
Save lemarcque/0c72d3cceaca68d2434e8797f2617e8c to your computer and use it in GitHub Desktop.
// source https://jsbin.com
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"> | |
// arihmetic functions - addition | |
var add = function(a, b) { | |
return a + b; | |
} | |
// Variable | |
var n1 = 10; | |
var n2 = 20; | |
var sum = add(n1, n2); | |
// Display value of numbers | |
console.log(n1); | |
console.log(n2); | |
console.log("sum => " + sum); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript"> | |
// arihmetic functions - addition | |
var add = function(a, b) { | |
return a + b; | |
} | |
// Variable | |
var n1 = 10; | |
var n2 = 20; | |
var sum = add(n1, n2); | |
// Display value of numbers | |
console.log(n1); | |
console.log(n2); | |
console.log("sum => " + sum);</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
// arihmetic functions - addition | |
var add = function(a, b) { | |
return a + b; | |
} | |
// Variable | |
var n1 = 10; | |
var n2 = 20; | |
var sum = add(n1, n2); | |
// Display value of numbers | |
console.log(n1); | |
console.log(n2); | |
console.log("sum => " + sum); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment