Friend you have to put the literal variables for example put:
Var arreglo = [1,2,3]
and it's
var arreglo = [1,2,3]
the var
goes in lowercase because it is a reserved word of javascript.
Also the variable that you put
var arreglo
and then you call it with
Arreglo.map(function( item , index ) {
console.log(item);
});
The error is in uppercase, friend if you put var Avion
when calling pon Avion
equal.
Another detail is when putting
Console.log(...)
the function is used like this
console.log(...)
With the letter ( c
) in lowercase.
Functional example
var arreglo = [1,2,3];
arreglo.map(function( item , index ) {
console.log(item);
});