
juan esteban
Preguntame aparece un error es este Uncaught SyntaxError: Unexpected identifier

juan esteban
eran errores de ortografía

juan esteban
gracias ya resolví mi problema

juan esteban
var d = document.getElementById("dibujito"); var lienzo = d.getContext("2d"); vae lineas = 30; var l = 0; var yi, xf;
while(1 < lineas) { yi = 10 * l; xf = 10 * (l + 1); dibujarLinea("#AAF", 0,yi,xf,300); console.log("linea" + l); l = l +1; }
function dibujarLinea(color, xinicial, yinicial, xinicial, x final) { lienzo.beginPath(); lienzo.strokeStyle = color; lienzo.moveTo(xinicial, yinicial); lienzo.lineTo(xfinal, yfinal); lienzo.stroke(); lienzo.closePath(); }

Diego Alexander Forero Higuera
Hola, puedes compartir el error completo y tu código para poder ayudarte.