Difference between script type="text/javascript" vs script src="app.js"


#1

Can someone help me understand the difference between using app.js vs. javascript in our code. Previously, I have used script type="text/javascript" when using jQuery. Does app.js replace that? Or is it only used in certain instances?
Thank you


#2

you can read about it on mdn, type specifies which scripting language is use (type could also have a value of text/css, which indicates you want to use css), but type="text/javascript" is no longer required in the latest standers (html5)

src stands for source, and tell the script tags where the js file is located. I would specify those, very useful