싱글톤 패턴하나의 클래스에 오직 하나의 인스턴스만 가지는 패턴장점 - 인스턴스 생성 시 비용이 줄어듬단점 - 의존성이 높아짐 예시코드class Singleton{ constructor(){ if(!Singleton.instance){ Singleton.instance = this } return Singleton.instance } getInstance(){ return this.instance }}const a = new Singleton()const b = new Singleton()console.log(a==b) // true : Singleton.instance 라는 하나의 인스턴스를 가지는 Singleton 클래스 const URL = 'URL';cons..