ํจ์ (1) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ [JavaScript] function type / object + function / return function type ์, ํน์ ์์ ์ ์ผ๊ด ์คํํ ์๋ฐ์คํฌ๋ฆฝํธ๋ฅผ ๋ชจ์๋๊ธฐ ์ํด์ ํ์ํ๋ค. ๊ธฐ๋ณธ๊ตฌ์กฐ let f1 = function(){}; ๋ค๋ฅธ type๊ณผ ๋น๊ต // number type ๋ฐ์ดํฐ๋ฅผ ๋ง๋ค์ด์ num1์ด๋ผ๋ ๋ณ์์ ๋์ let num1 = 10; // string type ๋ฐ์ดํฐ๋ฅผ ๋ง๋ค์ด์ str์ด๋ผ๋ ๋ณ์์ ๋์ let str = "abcd"; // object type ๋ฐ์ดํฐ๋ฅผ ๋ง๋ค์ด์ obj๋ผ๋ ๋ณ์์ ๋์ let obj = {} // array type ๋ฐ์ดํฐ๋ฅผ ๋ง๋ค์ด์ arr ์ด๋ผ๋ ๋ณ์์ ๋์ let arr = []; // function type ๋ฐ์ดํฐ๋ฅผ ๋ง๋ค์ด์ f1 ์ด๋ผ๋ ๋ณ์์ ๋์ let f1 = function(){ console.log("ํ๋"); console.. ์ด์ 1 ๋ค์