Frage im Vorstellungsgespräch bei ByteDance

I was asked questions on JavaScript concepts - promises and callbacks specifically.