blob: f96f8e961120bf5f7bf91f8db69861a27aaf7974 (
plain)
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 function2InScript(a)
{
logger("return function2InScript");
root.result = a;
}
function functionInScript(a, b)
{
logger("enter functionInScript");
var names = ["Clark Kent", "Peter Parker", "Bruce Wayne"];
var aliases = ["Superman", "Spiderman", "Batman"];
var details = {
category: "Superheroes",
names: names,
aliases: aliases
};
function2InScript(a + b);
logger("return functionInScript");
return details;
}
function logger(msg)
{
//console.log(msg);
return true;
}
//DO NOT CHANGE CODE ABOVE THIS LINE
|