Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐ŸŽฏ Quiz : 24์žฅ ํด๋กœ์ € #1004

Open
Ryan-Dia opened this issue Dec 17, 2023 · 0 comments
Open

๐ŸŽฏ Quiz : 24์žฅ ํด๋กœ์ € #1004

Ryan-Dia opened this issue Dec 17, 2023 · 0 comments
Assignees
Labels
Quiz quiz

Comments

@Ryan-Dia
Copy link
Member

Ryan-Dia commented Dec 17, 2023

๐Ÿ“š 24์žฅ ํด๋กœ์ €

Q1. ์ถœ๋ ฅ๋˜๋Š” ๊ฐ’์„ ์ ์–ด์ฃผ์„ธ์š”

const increase = (function () {
	let num = 0;

	return function () {
		return ++num;
	}
}());

console.log(increase()); // ?
console.log(increase()); // ?

Q2. ์™ธ๋ถ€ ํ•จ์ˆ˜ ๋ฐ–์—์„œ ๋‚ด๋ถ€ํ•จ์ˆ˜๊ฐ€ ํ˜ธ์ถœ๋˜๋”๋ผ๋„ ์™ธ๋ถ€ํ•จ์ˆ˜์˜ ์ง€์—ญ ๋ณ€์ˆ˜์— ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ๋Š” ์ด์œ ๋ฅผ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”.

Q3. ๋นˆ์นธ์„ ์ฑ„์›Œ์ฃผ์„ธ์š”

๊ฐ์ฒด์˜ ์ƒํƒœ๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ํ”„๋กœํผํ‹ฐ์™€ ํ”„๋กœํผํ‹ฐ๋ฅผ ์ฐธ์กฐํ•˜๊ณ  ์กฐ์ž‘ํ•  ์ˆ˜ ์žˆ๋Š” ๋™์ž‘์ธ ๋ฉ”์„œ๋“œ๋ฅผ ํ•˜๋‚˜๋กœ ๋ฌถ๋Š” ๊ฒƒ์„ [ ] ๋ผ๊ณ  ํ•œ๋‹ค.
์ด๋•Œ, [ ] ์€ ๊ฐ์ฒด์˜ ํŠน์ • ํ”„๋กœํผํ‹ฐ๋‚˜ ๋ฉ”์„œ๋“œ๋ฅผ ๊ฐ์ถœ ๋ชฉ์ ์œผ๋กœ ์‚ฌ์šฉํ•˜๊ธฐ๋„ ํ•˜๋Š”๋ฐ ์ด๋ฅผ [ ] ๋ผ๊ณ  ํ•œ๋‹ค.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Quiz quiz
Projects
None yet
Development

No branches or pull requests

1 participant