GlobalLogic interview question

What is the difference between nextTick() and setInmediate()