What's the Difference?


In an exercise I typed in something like 'I finished my course!' but that was incorrect. However, typing console.log('I finished my course!' made it correct. Both entries appeared in the black box that displays the answer the same. Is there a reason one is right over the other?


Console.log statements will work on an actual project, were as just the statement by itself will not. The console.log is a function to show a programmer when a part of their code is working, and if it is not used then the program will error. There are other ways that you can return values to make it show up on your web-page but that's waaaaaay more advanced and I'd suggest sticking to the basics for now