Use the function to display "Hello TOM". - Javascript Function

Javascript examples for Function:Quiz

Description

Use the function to display "Hello TOM".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
function myFunction(name) {/*from w w  w  .j  av a  2  s  .  co  m*/
    return "Hello " + name;
}
document.getElementById("demo").innerHTML = myFunction("TOM");
</script>

</body>
</html>

Related Tutorials