#author("2023-10-03T17:31:00+09:00","default:ryuichi","ryuichi")
 const something = (value) => {
   const r1 = Math.floor(Math.random() * 100);
 
   const inside = () => {
     const r2 = Math.floor(Math.random() * 100);
     console.log({ r1, r2, value });
   };
 
   return inside;
 };
 
 const first = something("first");
 const second = something("second");
 
 first();
 second();
 first();
 second();
 first();


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS