Page 1 of 1

JavaScript: Functions

Posted: Sun Aug 03, 2025 11:34 am
by The Jason

Code: Select all


<!DOCTYPE html>

<html>

<head><title>JavaScript Examples</title></head>

<body>

<script>

function say_name$(name){

return "Hi {name}.  Welcome to Hosting Chatter."

}

say_name$(Gary)

// It returns "Hi Gary. Welcome to Hosting Chatter.

</script>


</body>

</html>