2
1 - I have to create two functions inside each other.
2 - The first function has two parameters.
3 - The second function has a parameter.
4 - I followed the problem statement:
5 - Declare a function called threefold() that takes two parameters. Then you have to add both and return three times the result value of the sum of the two parameters.
To do this, you already count (even if you don’t see it declared) with the triple function, which takes a parameter and returns its value multiplied by three. 6 - I did it that way:
function triploDaSoma (num1,num2) funcaotriplo(num3) {
funcaotriplo = triploDaSoma (num1+num2);
return funcaotriplo * 3;
}
triploDaSoma (3,2);
7 - This is the error that appears:
Unexpected Identifier
See if that help you.
– Andre