Patricjs - object orientated JavaScript



This is an example program running in the Patric.js environment.

The code is as follows;

loop 50;
    hexagon 30;
next;

You can try coding yourself this tutorial shows you how to enter code and run it usiing the run button.

The loop command tells the program to repeat the lines between the loop and the next command by the number of times indicated by the number or arguament that follows the loop statement. THe lines that are repeated are those between the loop and next commands.



Copyright © 2016 · All Rights Reserved · patric.co.uk