Create 1D Dynamic Swap Array of JavaScript in Geogebra

Information: Create 1D Dynamic Swap Array of JavaScript in Geogebra