furthered work
This commit is contained in:
12
5/wrapper.html
Normal file
12
5/wrapper.html
Normal file
@ -0,0 +1,12 @@
|
||||
<html><body><script>
|
||||
function makeWrapper (prefix, suffix) {
|
||||
return function (string){
|
||||
console.log(prefix + string + suffix)
|
||||
return prefix + string + suffix
|
||||
}
|
||||
}
|
||||
let itsawrap = makeWrapper("[","]")
|
||||
|
||||
itsawrap("let me out")
|
||||
|
||||
</script></body></html>
|
Reference in New Issue
Block a user