Skip to content

Instantly share code, notes, and snippets.

@ShahinAhmed7
Last active March 1, 2018 18:11
Show Gist options
  • Save ShahinAhmed7/230816aab672baf85e5900c240429a54 to your computer and use it in GitHub Desktop.
Save ShahinAhmed7/230816aab672baf85e5900c240429a54 to your computer and use it in GitHub Desktop.
ES6 function// source http://jsbin.com/wuqiqumuke
<!DOCTYPE html>
<html>
<head>
<script src="http://fb.me/react-with-addons-0.14.0.js"></script>
<script src="http://fb.me/react-dom-0.14.0.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div id=example></div>
<h1>Hello world</h1>
<script id="jsbin-javascript">
//jshint esnext:true
'use strict';
function printMe() {
console.log('I am a Function');
}
printMe();
var fumnMe = function fumnMe() {
console.log('Hello world');
};
fumnMe();
var addMe = function addMe(score, addup) {
return score + addup;
};
console.log(addMe(300, 10));
// just practice bottom
function funk() {
console.log('Hello You');
}
funk();
var adi = function adi(cys, current) {
return cys + current;
};
console.log(adi(300, 400));
var hello = function hello() {
console.log('Hi everyone');
};
hello();
</script>
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html>
<html>
<head>
<script src="//fb.me/react-with-addons-0.14.0.js"><\/script>
<script src="//fb.me/react-dom-0.14.0.js"><\/script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div id=example></div>
<h1>Hello world</h1>
</body>
</html></script>
<script id="jsbin-source-javascript" type="text/javascript">
//jshint esnext:true
function printMe(){
console.log('I am a Function');
}
printMe();
var fumnMe = () => {
console.log('Hello world');
}
fumnMe();
var addMe = (score, addup) => score + addup;
console.log(addMe(300, 10));
// just practice bottom
function funk (){
console.log('Hello You');
}
funk();
var adi = (cys, current) => cys + current;
console.log(adi(300, 400));
var hello = () => {
console.log('Hi everyone');
}
hello();
</script></body>
</html>
//jshint esnext:true
'use strict';
function printMe() {
console.log('I am a Function');
}
printMe();
var fumnMe = function fumnMe() {
console.log('Hello world');
};
fumnMe();
var addMe = function addMe(score, addup) {
return score + addup;
};
console.log(addMe(300, 10));
// just practice bottom
function funk() {
console.log('Hello You');
}
funk();
var adi = function adi(cys, current) {
return cys + current;
};
console.log(adi(300, 400));
var hello = function hello() {
console.log('Hi everyone');
};
hello();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment