fork download
  1. function desenhar_um_quadrado() {
  2. for (var count = 0; count < 4; count++) {
  3. moveForward(100);
  4. turnRight(90);
  5. }
  6. }
  7.  
  8. function desenhar_um_tri_C3_A2ngulo() {
  9. for (var count2 = 0; count2 < 3; count2++) {
  10. moveForward(100);
  11. turnRight(120);
  12. }
  13. }
  14.  
  15. desenhar_um_tri_C3_A2ngulo();
  16. moveForward(100);
  17. desenhar_um_quadrado();
  18. moveForward(100);
  19. desenhar_um_tri_C3_A2ngulo();
  20.  
  21. /*
  22. moveForward(100);
  23. */
  24.  
  25. /*
  26. moveBackward(100);
  27. */
Runtime error #stdin #stdout #stderr 0.22s 2313728KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
js: uncaught JavaScript runtime exception: ReferenceError: "moveForward" is not defined.