Telling the browser JS is starting
Anyway, youâ€™ll probably use the most recent version in your scripts, 1.5.
The correct form is:
Donâ€™t specify a version at all.
Two attributes for compatability
You saw that we used two attributes that do the same thing, and I said we must use them for compatibility:
For the start, we will use in our script both attributes, just for you to get familiar with them, but we will deprecate them on the road.
Hidding JS from older browsers
Yes, this is about compatibility again.
I call it very very very simple because it does nothing! Actually, this is just the skeleton that you must use every time you will write your script, except the comments, which we discussed earlier that are optional. You can write your script in an editor but it will do nothing.