9. Meet Arrays


#1




I am confused on why I keep getting this...(Error: Access is denied.) when my code is this...

// You are now declaring an array.
// Arrays are an awesome data structure!
var junk = ["food","Hey","4","7"];
console.log(junk)

and the instructions...

Declare it using var.
02. Put [ ] around your data.
03. Separate each bit of data with a comma.
04. End it with a semi-colon.
05. Use console.log to print out junk.




#2

@googlejonathanmoquis,
Have you tried
++++ reset of session *****************
As you are manipulating with objects
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


#3

remove inverted comma's from the numbers...


#4

You don't surround numbers with commas. That is incorrect. I believe surrounding them with commas will cause it to become a string.