Foobar

From Simple English Wikipedia, the free encyclopedia
(Redirected from Foo)

Foobar, and sometimes foo and bar separately, are common placeholder names in computing.[1]

Foobars have been used to name variables, functions, and commands whose exact identity is unimportant. For example, a JavaScript tutorial might explain that two variables can be created at once with the code var foo, bar = 5. It's a lot like the placeholder letters x and y in algebra.

References[change | change source]

  1. "RFC 3092: Etymology of "Foo"". IETF Datatracker. 2001-04-01. Retrieved 2023-03-26.