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

My code

function getArea (width, length, unit = "centímetros")  {
 const area = width * length;
  return `${area} ${unit}`;
}
Steven Parker
Steven Parker
231,261 Points

Looks like code, alright. :wink: Did you mean to ask a question about it?

hehe, I was just sharing it as Guill said to do in the video. I am a super beginner and I'm proud of every single code I write. Even if they are still so simple.

1 Answer

Steven Parker
Steven Parker
231,261 Points

Whether a question or sharing, it's good to include a description to make the point of the post clear.

If just sharing, you could also point out any special features added or techniques used that distinguish the code from what might be done by default in the course.