# Function Prototype help

**URL:** <https://forum.kirupa.com/t/function-prototype-help/121019>\
**Category:** Uncategorized\
**Created:** [August 30, 2004, 2:29am UTC](https://forum.kirupa.com/t/function-prototype-help/121019 "2004-08-30T02:29:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fydus](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@Fydus](https://forum.kirupa.com/u/Fydus)\
**Post date:** [August 30, 2004, 2:29am UTC](https://forum.kirupa.com/t/function-prototype-help/121019/1 "2004-08-30T02:29:54Z")

</div>

What does prototyping a function do?

i got this from the tile based games site.  
//////////////////////////////////////////////////  
game.Tile0 = function () { };  
game.Tile0.prototype.walkable = true;  
game.Tile0.prototype.frame = 1;

game.Tile1 = function () { };  
game.Tile1.prototype.walkable = false;  
game.Tile1.prototype.frame = 2;  
/////////////////////////////////////////////////  
game[name] = new game"Tile"+map\*[j];  
/////////////////////////////////////////////////

Can anyone explain prototyping?

A before hand thanks~
