JavaScript JavaScript Basics (Retired) Creating Reusable Code with Functions Passing an Argument to a Function

Justin Townsend
Justin Townsend
4,537 Points

JavaScript function and return

I am confused, it looks right to me but it's wrong, and I don't know why

function returnValue(God){
var echo = returnValue();
  return echo;
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
<script src="script.js"></script>

1 Answer

Looks like you misread what the second part was asking.

The echo variable should be called after the end of the returnValue function, i.e. echo will have the result of calling returnValue.