JavaScript JavaScript Basics Creating Reusable Code with Functions Returning a Value from a Function

Jasmine Johnson
Jasmine Johnson
1,134 Points

There’s an error with the code

What’s the error

script.js
function getYear() {
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