Viewing JavaScript process somehow?

Is there a way I can view what my functions return as a value for the lessons on freecodecamp? I would like to see what my code is actually doing.

You can run the function in your browser’s console. You can use an online REPL environment like You can use tutorial step-through teaching aids like pythontutor. There are a number of ways you can also run functions on your own computer using an IDE or Node.

1 Like

You can use console.log to see what value your functions are returning. It will print to the console both in the FCC challenge console and your browser’s console. Just put it before the return statement inside your function. For example:

function example() {
let result = "this is your result";
return result;
1 Like