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

craig grice
craig grice
4,046 Points

Modify the returnValue function to accept one argument named value.

script.js
function returnValue(Value) {
  return Value;
}

var echo =returnValue("value")
index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
<body>
<script src="script.js"></script>
</body>
</html>

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 45,971 Points

The bummer message for task 2 states The function declaration doesn't have an argument named 'value'

This is because you have used an uppercase V in value. Change it to lowercase.