0
how to output a text in javascript
3 Respuestas
+ 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");