How do I see javascript function returns in console?

The function that’s causing me issues is this:

function finalLetter() {
	let letter = {
		recipient: characters[state.writing],
	}
	letter = Object.assign(letter, deepCopy(state.writing_content))
	return letter
}

(where deepCopy(Object) and other variables are defined earlier in the program and confirmed to be working correctly)

It seems like it’s not actually returning anything, and when I do console.log(finalLetter) in the Firefox console, I see the function information with “Arguments” and “Caller”, but no “Return:” or anything similar.

What am I doing wrong?

Welcome to the forum @aaaaaaaaa1 !

Try calling your function like this: console.log(finalLetter());

Happy coding!

Right, I forgot that was a thing