Javascript 2.2 | Sololearn: Learn to code for FREE!

0

Javascript 2.2

I have no idea what I’m doing wrong at all I do document.write(“JS is cool”) but nothing I’m new to all this and that’s what they taught me to do in Java script 2.1 please help

5/27/2021 12:44:16 AM

Alex Ramistella

2 Answers

New Answer

+3

You need to use double quotes (" ") and console.log() console.log ("Antarctica is cool")

0

Alex Ramistella here is MDN documentation on document.write() https://developer.mozilla.org/en-US/docs/Web/API/Document/write