Menu
Hi, Im learning JavaScript but have a question about arrays, hope you can help:
I understand what an array/element etc is but can you explain to me the differences between declaring an array like this:
let logEntries = [ ]
or this:
let logEntries
logEntries = [ ]
One we are declaring logEntries as an array at the start in the variable area, and the other we are turning a standalone variable into an array, but what is the difference or best way? Are they any different programmically?