// Write a function diagonalSize that takes the sizes of two sides of a rectangle, a and b, and calculates the size // of a diagonal (d) that crosses the rectangle. // __ // |\d| // |_\|a // b // // You should write your code in place of the comment below that reads // place your code here // The program below should produce the following output: // size a = 4; size b = 3 // diagonal size = 5 // // hint: in a right triangle, the square of the hypotenuse is equal to the sum of the squares of the legs (or catheti) program(); function program() { var a = 4, b = 3; console.log("size a = " + a + "; size b = " + b); console.log("diagonal size = " + diagonalSize(a, b)); } function diagonalSize(a, b) { // place your code here }