Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

function challenge - HELP

I understand what the challenge is asking but what am I doing wrong here...

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>
Michael Fish
Michael Fish
7,804 Points

Are you stuck on the first part of the challenge? Because that code looks fine to me

1 Answer

After resending over and over it finally said well done I knew I had the code right but it just refused to accept it - I have found this problem on a few challenges ....

Michael Fish
Michael Fish
7,804 Points

I have noticed some bugs like that. Sometimes when I pause a video it starts playing audio from Andrew Chalkley's how to ask a question video

Michael Fish
Michael Fish
7,804 Points

I have noticed some bugs like that. Sometimes when I pause a video it starts playing audio from Andrew Chalkley's how to ask a question video