Eastman interview question

1)Javascript promises 2)Javascript map function