But since it is outside of a function, how does it understand that we are referring to that particular min/max? What if I create 2 similar const objects and then call the given formula? I tried doing that by copying the const stats, changing the name and values of min/max and calling the code and I’m passing the challenge.
when you are the function with an argument you are telling the function which object to use
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.