how to output a text in javascript | Sololearn: Learn to code for FREE!

0

how to output a text in javascript

4/22/2021 9:54:23 PM

Terrell Kernahan

3 Answers

New Answer

+2

Terrell Kernahan JavaScript can "display" data in different ways: Writing into an HTML element, using innerHTML . Writing into the HTML output using document.write() . Writing into an alert box, using window.alert() . Writing into the browser console, using console.log() .

+1

Output to the console with console.log("My text")

+1

document.write("My text");