Answers for "how to give output in javascript"

20

how to print to console javascript

console.log("string")
Posted by: Guest on February-13-2020
0

output in javascript

console.log(a);             // write to the browser console
document.write(a);          // write to the HTML
alert(a);                   // output in an alert box
confirm("Really?");         // yes/no dialog, returns true/false depending on user click
prompt("Your age?","0");    // input dialog. Second argument is the initial value
Posted by: Guest on August-05-2021
0

js outputting data

Javascript: Outputting Data
alert()
Output data in an alert box in the browser window
confirm()
Opens up a yes/no dialog and returns true/false depending on user click
console.log()
Writes information to the browser console, good for debugging purposes
WebsiteSetup.org - Beginner’s Javascript Cheat Sheet 5
document.write()
Write directly to the HTML document
prompt()
Creates an dialogue for user input
Posted by: Guest on January-04-2021

Code answers related to "how to give output in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language