Search
GeoGebra
  • Home
  • Resources
  • Profile
  • Classroom
  • App Downloads

Sending a Geogebra List or Array to JavaScript

Author:JP MathPR
Topic:Linear Programming or Linear Optimization
ggbApplet.evalCommand("list=Sequence(RandomBetween(-10, 10),i,1,RandomBetween(2,10))"); ggbApplet.evalCommand("n=Length[list]"); var n= ggbApplet.getValue("n"); var aA= new Array(); for (var i = 1; i <=n; i++ ){ ggbApplet.evalCommand("a=Element[list,"+ i+"]"); a = ggbApplet.getValue("a"); aA.push(a); } alert(aA.join());

New Resources

  • Untitled
  • Translation of the Graph of a Function
  • အခြေခံ data အခေါ်အဝေါ်များ
  • גיליון אלקטרוני להעלאת נתוני בעיה ויצירת גרף בהתאם
  • Interactive Unit Circle

Discover Resources

  • Polygon Dissection
  • Animating Sine Wave Function
  • CONSTRUCCION DE TRIANGULOS POR EL CRITERIO LLL
  • bug_lista_func_cond
  • Concrete Polishing Melbourne
  • Test
  • circle

Discover Topics

  • Angles
  • Intersection
  • Standard Deviation
  • Hyperbola
  • Parametric Curves
AboutPartnersHelp Center
Terms of ServicePrivacyLicense
Graphing CalculatorCalculator SuiteMath Resources

Download our apps here:

Download_on_the_App_Store_Badge_US-UK_RGB_blk_4SVG_092917

© 2025 GeoGebra®