Replace this line with your code.
Why var myArray=[1,2,3,4]; doesn't prints any thing on the console whereas myArray=[1,2,3,4]; does prints out the elements of array in the console?
The codecademy console does this. Normally if you want to log something to console, you should use
so this happens in codecademy console only??
it depends on the console, you could study console behavior, but it is not that interesting.If you want something log to the console, use
console.log(). Console is mostly used for debugging anyway, so it is not so important
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.