æ¦è¦ ãããã¯æã®ããã§ãããªããããã¤ä¸ã«æ¸ãããæå¾ã®å¼ã®è©ä¾¡ãè¿ãdoå¼ãå®è£ ãããã åºæ¬ let foo = do { // ãããã¯ã¹ã³ã¼ããä½ã let x = 1 + 1 // ä¸ã«æ(ãå¼)ãè¨è¿°ã§ãã x + 3 // æå¾ã«è©ä¾¡ãããå¼ãdoå¼ã®çµæã¨ãªã function fn(){} // æã¯è©ä¾¡ãããªã } console.log(foo) // 5 ä½ãforæãwhileæãªã©ã¯å°ã注æãå¿ è¦ã§ã ã¾ãåæåé¨ãæ¡ä»¶é¨ãæ´æ°é¨ã®è©ä¾¡ã¯doå¼ãè¿ãå¤ã«ãªããªãã let bar = do { for (let i = 1; i <= 10; i++) i } // å®éã®æå¾ã®å¼è©ä¾¡ã¯ (11 <= 10) => false console.log(bar) // 10 ããã¦å¦çé¨ã«ä½ãæ¸ããã¦ããªãå ´åã§ããundefinedã¨è©ä¾¡ãããã let ba
{{#tags}}- {{label}}
{{/tags}}