Understanding JavaScript Promises Solution for Nested callbacks

Understanding JavaScript Promises Solution for Nested callbacks