Question: Which statement is true about the "async" attribute for the HTML script tag?

  1. It can be used for both internal and external JavaScript code.
  2. It can be used only for internal JavaScript code.
  3. It can be used only for internal or external JavaScript code that exports a promise.
  4. It can be used only for external JavaScript code.

Answer: The correct answer of the above question is Option D:It can be used only for external JavaScript code.