Skip to content

Instantly share code, notes, and snippets.

@lemarcque
Created December 15, 2018 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lemarcque/0c72d3cceaca68d2434e8797f2617e8c to your computer and use it in GitHub Desktop.
Save lemarcque/0c72d3cceaca68d2434e8797f2617e8c to your computer and use it in GitHub Desktop.
// source https://jsbin.com
<!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>
// 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