split hello-world into 2 chapters

This commit is contained in:
Ilya Kantor 2015-01-21 11:37:57 +03:00
parent 99240a757a
commit 97daf5f54a
117 changed files with 177 additions and 177 deletions

View file

@ -0,0 +1 @@
alert('Я - JavaScript!');

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<script src="alert.js"></script>
</body>
</html>

View file

@ -0,0 +1,12 @@
Код для HTML-файла:
```html
<!--+ src="index.html" -->
```
Для файла `alert.js` из той же директории:
```js
//+ src="alert.js"
```

View file

@ -0,0 +1,7 @@
# Вывести alert внешним скриптом
[importance 5]
Возьмите решение предыдущей задачи [](/task/hello-alert) и вынесите скрипт во внешний файл `alert.js`, который расположите в той же директории.
Откройте страницу и проверьте, что вывод сообщения всё ещё работает.