Синтаксис JavaScript > Методы alert, document.write, prompt > Пример работы метода document.write()
Результат: