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?


#1


Replace this line with your code.


#2

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


#3

so this happens in codecademy console only??


#4

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


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.