I am trying to implement an online chat using one of the main providers. They advised me to embed a code looking like this:
<script type="text/javascript">
function embedScriptInsideHTMLtags() {
// responsible code
}
{
embedScriptInsideHTMLtags();
}
</script>
My question is, what is the difference between the above and the below:
<script type="text/javascript">
function embedScriptInsideHTMLtags() {
// responsible code
}
embedScriptInsideHTMLtags();
</script>