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)
![Mohd Maqbool Alam](https://uploads.teamtreehouse.com/production/profile-photos/1215862/micro_7526000.jpg)
Mohd Maqbool Alam
Full Stack JavaScript Techdegree Student 5,715 Pointswhat is foo?
i always saw many programmer type in their code the word foo sometime as variable etc explain the word what is this ?
3 Answers
![Simon Woodard](https://uploads.teamtreehouse.com/production/profile-photos/1190442/micro_profile.jpg)
Simon Woodard
6,545 PointsIt doesn't mean anything, it's a term used because the variable isn't important to the lesson, but the complete code is. In working code 'foo' would never be used
![Chris Malcolm](https://secure.gravatar.com/avatar/97f2c21a84fd6ec63a45b8d298444240?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Chris Malcolm
2,909 Pointsthey're just placeholders..interesting stuff about their history though! http://en.wikipedia.org/wiki/Foobar
![James Barnett](https://secure.gravatar.com/avatar/43ea08b4fc547e8a5da87c207bea2123?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
James Barnett
39,199 PointsThe definitive answer on the history of foo
RFC3092
![James Barnett](https://secure.gravatar.com/avatar/43ea08b4fc547e8a5da87c207bea2123?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
James Barnett
39,199 PointsIn computer science, programmers use metasyntactic variables to describe a placeholder name or an alias term commonly used to denote the subject matter under discussion or an arbitrary member of a class of things under discussion. The use of a metasyntactic variable is helpful in freeing a programmer from creating a logically named variable, which is often useful when creating or teaching examples of an algorithm. The word
foo
is the principal example.
from: https://www.princeton.edu/~achaney/tmve/wiki100k/docs/Metasyntactic_variable.html
James Gill
Courses Plus Student 34,936 PointsJames Gill
Courses Plus Student 34,936 PointsIt's a fake word, used as a placeholder. You'll often see it paired with "bar", as in "foo bar". It's a programming term borrowed from the colorful old US military term "Fubar", which means--ahem--"fu*ked up beyond all recognition".
Ironically, In military slang, it means something (or someone, etc.) that's utterly broken or unusable.