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

finally,from the returnValue function return the value passed in.

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

1 Answer

Piotr Manczak
Piotr Manczak
Front End Web Development Techdegree Graduate 21,307 Points

Value is a parameter(variable) so it cannot be in ''. Have a look at this:

function returnValue(value) {

return value;