예를 들어
http.createServer([options][, requestListener])이런거 있을 때 [options][, requestListener]가 뭘 의미하는 건지(특히 반점 같은 거) 어떻게 알지?
그리고 궁금한게
http.createServer((req, res) => {
res.writeHead(.....);
});
이런식으로 메서드 쓸 때, 첫번째 인수로 화살표 함수 (req, res) => { } 에서 req랑 res는 그 역할이 정해져 있는거야?
그니까 (req, res) 대신 (SEX, GUY) 이렇게 해도 SEX.writeHead(...)랑 req.writeHead(...)랑 같은거야?
2는 맛구 1은 언어론 배울 때 배웟던건데 아마 다른거 가이드라인이 잇을덧
머일단 찾아보니가 so 비슷한 질문 잇내 남겨놓을께
https://stackoverflow.com/questions/21654192/what-do-the-brackets-around-the-arguments-mean-when-reading-documentation-for-a
고마어요
화이팅 ^~^