You can see from the image that .append() and .prepend() adds the new elements as childelements (brown colored) to the target. And .after() and .before() adds the new elements…
With HTML5, we get two new boolean attributes for the <script> tag: async and defer. Async allows execution of scripts asynchronously and defer allows execution…