Question: when then function in jquery?
Answer: jQuery. when( deferreds )Returns: Promise. Description: Provides a way to execute callback functions based on zero or more Thenable objects, usually Deferred objects that represent asynchronous events.