html
html
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var addTo= function(passed){
var add = function(inner){
return passed + inner;
var give=function(give){
return give+2;
}
return give; //why isn't this returning 8
}
return add;
}
console.log(addTo(3)(6)(2)) //why is the function call wrong
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run