The game consists in having to click on the apple. one click is equivalent to 1 point. once you have enough points you can buy other fruits that will generate a specific number of points per second without you having to click. if you buy a fruit more than once it will doble their abilities.
Credit to a tutorial from "scratch team"