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

Tine Jakomini
Tine Jakomini
2,494 Points

Help pleas.

.

script.js
function returneValue(hello)  {
  var echo =
  return 
}
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>

2 Answers

Vivienne Owusu-Ansah
Vivienne Owusu-Ansah
3,109 Points

function returnValue(hello) { return hello; }

var echo = returnValue("Tine");

Daniel Baker
Daniel Baker
15,352 Points

Try again, looks like you typo'ed "returnValue" as "returneValue"

If you need more help see the answer below! v v v v v

Answer:

function returnValue(hello)  {
  return hello;
}