기능을 "Hello"로 return하십시오.
코드
function myFunction() { return "Hello"; } document.getElementById("demo").innerHTML = myFunction();