fork(1) download
  1. var list = {
  2. value:1,
  3. next: {
  4. value: 2,
  5. next: {
  6. value: 3,
  7. next: {
  8. value: 4,
  9. next: null
  10. }
  11. }
  12. }
  13. }
  14.  
  15. function showList(list) {
  16. alert(list.value);
  17. while(list.next != null) {
  18. showList(list.next);
  19. }
  20. }
  21. showList(list);
Runtime error #stdin #stdout #stderr 0.01s 29880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
prog.js:16:1 ReferenceError: alert is not defined