diff --git a/hello.html b/hello.html index e92f92a..de6c2b9 100644 --- a/hello.html +++ b/hello.html @@ -2,6 +2,7 @@ + Hello Team @@ -30,6 +31,7 @@ updateText(elisabeth(), textContent); updateText(bob(), textContent); // Note: we need to add more function here for everyone to say hello. +updateText(yao(), textContent); // append the text content to the document document.body.appendChild(textContent); diff --git a/yao.js b/yao.js new file mode 100644 index 0000000..ba802d4 --- /dev/null +++ b/yao.js @@ -0,0 +1,3 @@ +function yao() { + return "Yao says hello."; +} \ No newline at end of file