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?


Replace this line with your code.


The codecademy console does this. Normally if you want to log something to console, you should use console.log()


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.