Skip to content

fifteen3/Fruit-Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

In order to execute call:

var tree = getFruitTree(3,'apple'),
	apple1 = tree.pick(),
	apple2 = tree.pick(),
	apple3 = tree.pick();

apple1.eat(); //mmm, good apple
apple1.eat(); //all gone. already ate apple

About

An example of javascript representing a Fruit Tree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published