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

Ariadna Rodriguez
Ariadna Rodriguez
1,524 Points

I am so lost I've tried everything and still am sure I know what the challenge is asking.

the challenge is part two it asks after your newly created function named returnValue make a variable named echo to be the results from calling your function

script.js
function returnValue (month) {
  var echo = promt(" Name a hot month");
    return echo;
}
returnValue(month); 
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