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
17
18
19
20
21
22
23
24
25
26
27
28
function test(a,b){
//return (a,b); should return the arguments object
return arguments
}
function values(){
var d = test(5,6);
return d;
}
function calc(){
// var c = test(arguments [0]) * test(arguments [1]); here you are trying to invoke test() and pass the argument object.
// which is at this moment undefined.
// You should invoke the values() to pass 5,6 to the test()
var c = values(); // the arguments object returned from test() via the return of values() is now assigned to the variable c
return c[0]*c[1];
}
console.log(calc());
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run