let a = 2; console.log(a); // 2 } console.log(a); // 1 ϒϩοΫ var a = 1; if (a === 1) { var a = 2; console.log(a); // 2 } console.log(a); // 2 ؔ (άϩʔόϧ)
ͷߋ৽Λ࣮͍ͯ͘͠ HTML + CSS + API αʔόʔ͚ͩͷঢ়ଶ͔ΒϑϧεΫϥονͰ TODO ΞϓϦΛ࡞͢Δ ΞʔΩςΫνϟϨϕϧͷઃܭ͔ΒࣗͰͬͯΑ͍ (Flux ͡Όͳ͍͍ͯ͘) • TODO Ұཡͷऔಘ • TODO ͷ࡞ ͜Ε͔Β࡞Δػೳ • TODO আ • TODO ͷྃঢ়ଶͷߋ৽
TODO ͷߋ৽Λ࣮͍ͯ͘͠ HTML + CSS + API αʔόʔ͚ͩͷঢ়ଶ͔ΒϑϧεΫϥονͰ TODO ΞϓϦΛ࡞͢Δ ΞʔΩςΫνϟϨϕϧͷઃܭ͔ΒࣗͰͬͯΑ͍ (Flux ͡Όͳ͍͍ͯ͘) • 1. আϘλϯΛԡͨ͠ΒରͷTODOͷIDΛ ϩάʹग़͢ • 2. ϩάग़ྗͷΘΓʹ Action Λ dispatch ͯ͠ store Ͱ ϩάΛग़ྗ • 3. API αʔόʔߋ৽ͤͣ Store ͷσʔλ্Ͱ ࣮ࡍʹআ • 4. API ʹ௨৴͢Δ෦Λ࣮