# JS-Interpreter Serialization Demo

The intepreter may be stopped at any time, the state serialized, then deserialized at a later time, and the interpreter resumed. The functions for this are in serialize.js.

1. Click Parse, then click Step repeatedly.
2. At some point click Serialize.
3. Copy the serialized data structure to the clipboard, reload this page, then paste the data structure back in its text area.
4. Click Deserialize.
5. Continue clicking Step repeatedly, or press Run.

Open your browser's console for errors.

var numbers = []; for (var i = 0; i < 3; i++) { numbers.push(i); } alert(numbers.join('-'));

Back to the JS-Interpreter documentation.