' 3D DEMO color (random 2 to 9) create text "Hello" do turn "Hello" by 1 update loop

Unlike applications that react to events (opening a web page, clicking a button, etc.), 3D games and applications run inside infinite loops.

Here, the 3D text is animated inside the DO ... LOOP block.

What would freeze your JavaScript program is, on the contrary, the central element of your Backsic program.

The key element to understand here is the UPDATE statement, which pauses the program long enough for changes to become visible on screen.

You will usually place an UPDATE call inside each main loop.