Add a breakpoint in the main function in the exercise you want to check.
Go to debug option and select the exercise in the select list
Click on the play button and enjoy
Create function f3. This function must to:
- call f1 with 4
- call f2, with the result of f1
- return f1 + f2
Call f3 function into main function.
Create function f3. This function must to:
- call f1 with 5
- call f2 with 2
- return f1 + f2
Call f3 function into main function.
Create function f3. This function must to:
- call f1 with 4
- call f2 with the result of f1
- return the value of f2
Call f3 function into main function.
Create function f3. This function will receive an array of numbers.
For each number:
- call f1 with the number
- return the result of f1
Then, sum all the results of f1 and return it
Tips:
- the final sum is 36
- MDN Array
Create function f3. This function will receive an array of numbers.
For each number:
- call f1 with the number
- call f2 with the result of f1
- return the result of f2
Then, sum all the results of f2 and return it
Tip:
- the final sum is 72
Execute the error.js example to see what is happening...


