Apps Script公式リファレンス: Apps Script Reference |障害・課題追跡: IssueTracker |Google Workspace: Status Dashboard - Summary

2019年1月26日土曜日

JavaScript関数の定義についてメモ


関数の定義にもいくつか種類がある


関数宣言


よく使うfunction 文
function showAlert() {
   alert("hello");
}


関数式


無名関数
var myFunction = function() {
    alert("hello");
}



名前付き関数
var myFunction = function showAlert(){
    alert("hello");
}



即時関数
(function() {
    alert("hello");
})();



アロー関数
() => {
  alert("hello")
  };



これはまだ個人的に使う機会がない
ジェネレータ関数
function* name([param[, param[, ... param]]]) {
   statements
}


Latest post

Google Apps Scriptの障害時はIssueTrackerを見てみる - Incidents for Apps Script are reported on Issue Tracker

IssueTracker > Apps Script issues https://issuetracker.google.com/savedsearches/566234 Google Apps Scriptの障害時は IssueTracker に課題が上がっていることが...