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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![sohee kim](https://secure.gravatar.com/avatar/74a784946a5aa2b020985508c3c1670f?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
sohee kim
234 PointsHow can you tell the difference about these 2 sentences?
They say "createItem(375, 300, 'coin')"
-> It 'calls' the function
-> It creates a function
is a first one not the second one.
What is difference?
2 Answers
![Jason Anders](https://uploads.teamtreehouse.com/production/profile-photos/3512822/micro_Jason_s-Pic.jpg)
Jason Anders
Treehouse Moderator 145,859 PointsAs I've suggested in your other post. I strongly recommend you complete the Digital Literacy course before proceeding any further with this JavaScript course. Even being a "Beginner" level course, it still kind of does assume a very basic understanding of common syntax with languages.
You will find it a great benefit to you and to your learning, as it will help immensely with the basic understandings with syntax of the languages (including JavaScript).
![Lori Moritz](https://uploads.teamtreehouse.com/production/profile-photos/10551512/micro_Lori_Tutor-300x292.jpg)
Lori Moritz
Courses Plus Student 9,150 PointsI would say that the function name createItem can confuse you in selecting the correct answer.
to "call" a function is to use the function in your program.
createItem(375, 300, 'coin'); is a call to the function.
to "create" a function is not a technical term, I think. One may get fooled to pick this answer because the function has the word create in it, but it isn't standard programming vocabulary. Instead you can "define" a function, which means to program/code the function initially at the beginning of your javascript document to tell it what you want the function to do when you want to use it in your code.
function createItem(xPosition, yPosition, type) { //type code here } ...is defining the function.
Note that you must define a function in order to call a function, unless you are using standard functions already defined in standard javascript libraries (like prompt(string), document.write(string), etc...).
Note that when you call a function, you use specific values or variables that you have defined in the code, like the 375, and the 300.