다음과 같은 문법을 봤는데, 어떻게 이런게 가능할까요? node module봐도 잘 모르겠어서 질문드립니다.간단한 예제같은거 하나 만들어 주실 수 을까요?const a = new A() console.log( a() ) console.log( a.func() )예제를 본 곳은 다음입니다.https://www.npmjs.com/package/short-unique-id
다음의 문서에 필요한 답이 모두 있습니다. 한번 끝까지 다 읽어보시길 권장합니다.https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Classes그래도 간단하게 답이 될만한 문장을 뽑는다면 다음과 같습니다.'Class는 사실 "특별한 함수"입니다.'