Created
August 22, 2021 15:27
-
-
Save angelomiranda/460907e504bab425965e682cca9a2f99 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/gabecox
This file contains hidden or 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
<script src="https://cdn.rawgit.com/zloirock/core-js/master/client/shim.min.js"></script> | |
<!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 log = (fn) => console.log(fn) | |
function reverseString(str) { | |
return str.split('') // ["H", "e", "l", "l", "o"] | |
.reverse() // ["o", "l", "l", "e", "H"] | |
.join(''); // 'olleH' | |
} | |
log(reverseString('Hello')) | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">const log = (fn) => console.log(fn) | |
function reverseString(str) { | |
return str.split('') // ["H", "e", "l", "l", "o"] | |
.reverse() // ["o", "l", "l", "e", "H"] | |
.join(''); // 'olleH' | |
} | |
log(reverseString('Hello')) | |
</script></body> | |
</html> |
This file contains hidden or 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 log = (fn) => console.log(fn) | |
function reverseString(str) { | |
return str.split('') // ["H", "e", "l", "l", "o"] | |
.reverse() // ["o", "l", "l", "e", "H"] | |
.join(''); // 'olleH' | |
} | |
log(reverseString('Hello')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment