Area of a Square | Using Side , Diagonal and Perimeter | Function to find the area of a square ; Use above formula ; Given Side of square ; Function call
function areaOfSquare ( S ) { let area = S * S ; return area ; } let S = 5 ; document . write ( areaOfSquare ( S ) ) ;