Program to Calculate the Perimeter of a Decagon | Function for finding the perimeter ; Driver code
function CalPeri ( ) { var S = 5 , Perimeter ; Perimeter = 10 * S ; document . write ( " " + Perimeter ) ; } CalPeri ( ) ;