negative reciprocal javascript 1

negative reciprocal javascript

x = -1/x

Here is what the above code is Doing:
1. We are creating a function called “reciprocal” that takes in a number “x”
2. We are creating a variable called “y” that is equal to the reciprocal of “x”
3. We are returning the value of “y”

Similar Posts