Please tell me about two ways to print out strings


#1


Above all, please excuse my poor English. I'm not living in English-speaking-country, so my English ability is very insufficient.

With programming, I used two ways to print out strings.
One is just writing strings on the script.
Two is using the 'console.log()' function.

And I'm curious about difference between above ways. Please explain that to me.


#2

I believe just writing stings on the script only works in the codecademy environment because they do things behind the scenes that make it work. 'Console.log()' is the best way to output to the console.


#3

Thank you. Your advice solves my curious!


#4

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