Javascript to empty a list

Åsmund shared this question 2 years ago
Answered

I have a list that I want to make empty. With GeoGebraScript I just type


L_1 = {}


But I want to do it with javascript. I tried this, but it didnt work at all.


var L_1=ggbApplet.getValue("L_1");

ggbApplet.setListValue("L_1",1,{});

Comments (1)

photo
1

ggbApplet.evalCommand("SetValue(l1,{})")

Note1: l1 must be a free object.

© 2021 International GeoGebra Institute