Category: Number function
This function returns the square of number.
Argument | Type | Description |
---|---|---|
number | Number | The value to be squared (multiplied by itself). |
Return value type: Number
square(2) //Returns 4
square(25) //Returns 625
square(-10) //Returns 100
square(12.4) //Returns 153.76