Hello,
I am new to Javascript. However, I am not totally new to coding in general and I am stumped on something that should be extremely basic. This:
var cars = ["ford", "volvo", "saab"];
var first_car = cars[0];
...does not work. It says the variable "cars" is not defined. I don't understand. I read through tutorials and basically copy and pasted this, yet it doesn't work. Are arrays handled differently in RPG Maker MV than in basic Javascript? Sorry if this seems insanely rudimentary, but I'm at a road block--arrays are essential to my game's progress.
Thank you.
I am new to Javascript. However, I am not totally new to coding in general and I am stumped on something that should be extremely basic. This:
var cars = ["ford", "volvo", "saab"];
var first_car = cars[0];
...does not work. It says the variable "cars" is not defined. I don't understand. I read through tutorials and basically copy and pasted this, yet it doesn't work. Are arrays handled differently in RPG Maker MV than in basic Javascript? Sorry if this seems insanely rudimentary, but I'm at a road block--arrays are essential to my game's progress.
Thank you.