Created
November 14, 2019 16:51
-
-
Save ErFaanHussain/9511916d5eae57c63d0bb24e6b3c5b5b to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/roqaromoqi
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"> | |
const myfun = (name,age) => console.log(name+'--'+age); | |
myfun("irfan", 19); | |
const arr = ['irfan','hussain','dar']; | |
console.log(arr); | |
const newArr = arr.filter(name => name.length>5); | |
console.log(newArr); | |
const newMap = arr.map(name => name.length); | |
console.log(newMap); | |
let arrN = [1,30,9,7]; | |
var newA = arrN.reduce((a,b) => a+b); | |
console.log(newA); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">const myfun = (name,age) => console.log(name+'--'+age); | |
myfun("irfan", 19); | |
const arr = ['irfan','hussain','dar']; | |
console.log(arr); | |
const newArr = arr.filter(name => name.length>5); | |
console.log(newArr); | |
const newMap = arr.map(name => name.length); | |
console.log(newMap); | |
let arrN = [1,30,9,7]; | |
var newA = arrN.reduce((a,b) => a+b); | |
console.log(newA);</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
const myfun = (name,age) => console.log(name+'--'+age); | |
myfun("irfan", 19); | |
const arr = ['irfan','hussain','dar']; | |
console.log(arr); | |
const newArr = arr.filter(name => name.length>5); | |
console.log(newArr); | |
const newMap = arr.map(name => name.length); | |
console.log(newMap); | |
let arrN = [1,30,9,7]; | |
var newA = arrN.reduce((a,b) => a+b); | |
console.log(newA); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment