Title1

Title2

Title3

4-2 宣告函式

使用「function」關鍵字宣告函式

function 函式名稱(參數1,參數2,....){
  敘述;
  return 傳回值;
}

參數可指定預設值

若無傳回值,預設傳回 undefined