📌 What JavaScript can do?
→ Common uses of JavaScript are image manipulation, form validation, and dynamic changes of content.
1️⃣ JavaScript can change content
2️⃣ JavaScript can change style
3️⃣ JavaScript can change attributes
📌 Script Tag Attributes
→ src
• Specifies the URL of an external script file.
→ type
• Specifies the media type of the script.
→ defer
• Specifies that the script is executed when the page has finished parsing (only for external scripts).
→ async
• Specifies that the script is executed asynchronously (only for external scripts).
→ crossorigin
• Sets the mode of the request to an HTTP CORS Request.
→ integrity
• Allows a browser to check the fetched script to ensure that the code is never loaded if the source has been manipulated.
Thanks for reading this thread ❤️
If you like it , make sure you:
🔷 Like the tweet
🔷 Retweet the first tweet ⚡
For more content , follow:
@MrunayU