Home TI-Nspire Authoring Lua Scripting HQ Lua and JavaScript Scripting Tutorial - Lesson 2

Lua and JavaScript

Scripting Tutorial - Lesson 2.1: Lua Tables

  

Play with the script in the text box below, and then click the "run your code" button above.

Click "run your code!" to get started.

You can copy and paste the script (or type your own) into the lower text box and then click "run your code!" After that, explore and experiment!

We are unable to "bring our script to life" at this stage since without access to TI-Nspire, we have no sliders and variable to link to. To gain the full experience of this script, you should try it within the TI-Nspire software, as described.

You CAN change the value given to the variable linecount in the script in the window opposite - try different values (such as 'local linecount = 5'), and then click the "run" button to see the effect.


Home TI-Nspire Authoring Lua Scripting HQ Lua and JavaScript Scripting Tutorial - Lesson 2