closuresJavaScriptClosuresMediumWhat is a potential pitfall of closures?1They can cause memory leaks by keeping references that prevent garbage collection2They make all variables global3They disable the event loop4They cannot access outer variablesBack to list