강의

멘토링

커뮤니티

Inflearn Community Q&A

cluelin8874's profile image
cluelin8874

asked

Node and React series that you can learn by following - Basic lecture

Node React Basics Lecture #11 Login Function with Bcrypt (1)

쉼표연산자 이해가 잘가지않습니다.

Written on

·

220

1

if(errreturn cb(err), 
            cb(nullisMatch)

이부분이  if, else구문으로 보여지는데 , 로 표현하고 계셔서, 

, 연산자를쓰면 else처럼 사용할수잇는걸까요???

reactnodejs

Answer 2

4

John Ahn님의 프로필 이미지
John Ahn
Instructor

제가 오타를 낸것 같습니다 ^^;; 

if (err) return cb(err);
cb(null, isMatch);

이게 맞는 표현입니다 ^^ 

0

cluelin님의 프로필 이미지
cluelin
Questioner

아넵넵 안그래도 다음강의에 질문내용에 잇더라구요. ㅎㅎㅎㅎ 보고 고쳣습니다! ㅎㅎㅎ 미쳐 질문삭제를 못햇네요.. 감사합니다 !!

cluelin8874's profile image
cluelin8874

asked

Ask a question