Can you open () inside math.random and floor like in math?

Hey people!
Can you open () in a function like math.random and floor ?
Here they used this
return Math.floor(Math.random() * (ourMax - ourMin + 1)) + ourMin;
Here the math.random is inside math.floor but what is (ourMax - ourMin + 1)
can write like in mathematics in code? Is the logic here the same as math?

1 Like

In JavaScript, operators like +, -, * behave like you would expect in math if the operands are numbers.

1 Like

Okay thank you! What I noticed from FCC’s tutorial is they skip small things like that. And if I watch a tutorial I usually expect the tutor to explain it.