Most examples I\'ve seen have scripts in a html page being enclosed by
I\'ve tried writing it without the comment tags a
It's for some old browsers that were in use last century.
You no longer need them any more today, but using CDATA is considered good practice if you write XHTML.