SAP interview question

Explain JS promises, closure, scopes, etc.