Ver Mensaje Individual
  #8 (permalink)  
Antiguo 14/05/2014, 17:18
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 16 años, 5 meses
Puntos: 2237
Respuesta: Problema con un array

Cierto, "en teoría" son opcionales, sin embargo:

Cita:
There's been a lot of debate over semicolons in JavaScript. Semicolons aren't required due to the nature of JavaScript's automatic semicolon insertion, but they've been been considered a best practice for years.
Para evitar errores, es mejor especificar por uno mismo donde acaba una sentencia y no dejar que el motor intente adivinarlo.
__________________
- León, Guanajuato
- GV-Foto