# JS-Interpreter Line Step Demo

Some applications may wish to step line by line, not node by node. See the `isLine` function in the source code for this page.

Click Parse, then either click Step repeatedly, or click Run once. Open your browser's console for errors.

var result = []; function fibonacci(n, output) { var a = 1, b = 1, sum; for (var i = 0; i < n; i++) { output.push(a); sum = a + b; a = b; b = sum; } } fibonacci(16, result); alert(result.join(', '));

Back to the JS-Interpreter documentation.