Basic JavaScript #4: How to use JavaScript?

preview_player
Показать описание
Let us see how we can actually use JavaScript files on our website/html document with script tags.
Рекомендации по теме
Комментарии
Автор

1:58 The only difference is that if it's embedded right in the HTML, the HTML file will weigh a little more.
Otherwise, if you link to an external file, when the browser parses the HTML - as it parses the JS, it will have to send a request to your website's server (even if it's a local server), download the JS file, parse it & execute its code

avi