Page 1 of 1

JavaScript: Function Names

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

Code: Select all


<!DOCTYPE html>

<html>

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

<body>

<script>

// Dollar signs, underscores, and letters can start it.  Dollar signs, underscores, letters, and numbers can be in it.

// It's the same naming rules as with variables.

function car_make$(make){

return "Your car is a {make}.}"

}

car_make$(honda)



</script>


</body>

</html>