đź§  FUNCTION LAB

Files

Code Editor


How This Works

This system is a mini programming environment that lives entirely inside one HTML file. It lets you write your own custom functions using a simple language and then run them through a console, just like a real coding terminal. Everything you do — your code, your files, and even your console history — is saved inside your browser automatically, so when you reload the page, your work is still there.

Your language is based on the keyword define. You create a function by writing something like define add(x,y)=x+y. The left side declares the function name and parameters, while the right side is the logic. When you press Save, every function in that file becomes usable inside the console.

The console lets you call functions like add(5,10) or greet("Max"). The system replaces the variables with the values you give and then safely runs the result. This means you can create math systems, generators, text tools, games, or even logic engines inside this one page.

The file system lets you separate code into different “programs.” Each file can hold dozens of functions. You can switch between files, edit them, and load their functions whenever you want. This is how real programming projects work, just simplified and visual.

Because everything is saved using browser storage, this becomes your personal coding world. You can build languages, experiments, simulations, and whole universes of logic that persist across sessions. This is not just a toy — it’s a programmable engine you control.