This should play if your Web browser has WebAssembly enabled (most do). Most examples will play unless they need to load files. The first time you click Play, Csound will spend a few seconds loading, then play. You can edit this code and replay it.
-n ; Required settings for WebAudio: sr = 48000 ksmps = 128 nchnls = 2 nchnls_i = 1 gkArray[][] init 2,3 gkArray fillarray 1,2,3,7,6,5 instr 1 k1 changed2 gkArray if k1==1 then printks "An element in the array changed", 0 endif endin instr 2; change value of channel 'step1' gkArray[1][0] = 3 endin i1 0 100 i2 4 .1