Question: The `.ready()` function is one of the most basic parts of jQuery, but jQuery also provides a mechanism for executing code when both one or more Promises have resolved and the DOM is ready. Which code snippet accomplishes this?

  1. A
  2. B
  3. C
  4. D

Answer: The correct answer of the above question is Option D:D