0

how to output a text in javascript

22nd Apr 2021, 9:54 PM
Terrell Kernahan
Terrell Kernahan - avatar
3 Respostas
+ 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() .
23rd Apr 2021, 10:15 PM
❤️😍Prerana😍❤️
❤️😍Prerana😍❤️ - avatar
+ 1
Output to the console with console.log("My text")
22nd Apr 2021, 10:34 PM
CamelBeatsSnake
CamelBeatsSnake - avatar
+ 1
document.write("My text");
22nd Apr 2021, 10:40 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar