I have a question about how to use console.log inside a function. My idea is to be able to log the results by calling the function directly, without having to use console.log each time I want to use the function.
So far I have this
As you can see, I set the console.log within the function clamp1, but when I try to call the function, it doesn’t log anything.
However, when I do this, the console.log works:
I don’t understand why I can’t use the console.log inside the function.
Thank you so much for your help!