function
funCreateTextNode() {
var
val = document.getElementById(
'd1'
);
elP = val.childNodes;
elP[1].appendChild(document.createTextNode(
'<b>Hello World!</b>'
));
elP[3].appendChild(document.createTextNode(
'<b>Привет Мир!</b>'
elP[5].appendChild(document.createTextNode(
'<b>To be or not to be?</b>'
}
funInnerHTML() {
'd2'
elP[1].innerHTML =
;
elP[3].innerHTML =
elP[5].innerHTML =
funMake() {
funCreateTextNode();
funInnerHTML();
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
script
src
"js/script.js"
></
</
body
div
id
"d1"
p
"d2"
funMake();