結果 : write javascript code to calculate area and perimeter of triangle