answersLogoWhite

0


Best Answer

If it's in a function, you can just write return "output"; There's also prompts and alerts alert("output"); prompt("output");

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What method is used in JavaScript used to generate output?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is a Javascript Void used for?

A Javascript Void can be used by a single computer programmer to evaluate a single command. It may also be used to purposely generate an undefined value.


Can javascript be used in Jtextpane in swing?

No. JavaScript can be used only in HTML and other Web Components


How is javascript used?

JavaScript is used to make HTML DHTML or Dynamic HTML. Provides a lot more interactivity between the web page and the browser provided JavaScript is not turned off.


Which method of object output streme class can be used to write the cotents of an object to a file?

write object


How do you display data in other HTML page retrieved from post method?

You can used various methods for retrieving data in HTML. JavaScript, Servlets etc are some ways to get data.

Related questions

What JavaScript method is most commonly used to generate output?

alert and prompt


What is a Javascript Void used for?

A Javascript Void can be used by a single computer programmer to evaluate a single command. It may also be used to purposely generate an undefined value.


What method in India is used to measure national income in service sector?

national and output method


What unit is used for timing Javascript events?

Milliseconds are used for timing JavaScript events.


Can javascript be used in Jtextpane in swing?

No. JavaScript can be used only in HTML and other Web Components


What are the main functions of Javascript?

Javascript can be used on a variety of platforms which require simple computer commands but not a full programming language. Javascript can be used as or in addition to a full fledged programming language.


How is javascript used?

JavaScript is used to make HTML DHTML or Dynamic HTML. Provides a lot more interactivity between the web page and the browser provided JavaScript is not turned off.


Which method of object output streme class can be used to write the cotents of an object to a file?

write object


Do you need java compiler to execute HTML programs written in javascript?

No, Java and JavaScript are nothing to do with each other, JavaScript is a form of EMCAScript, not Java. Every modern browser comes with a JavaScript engine that is used to understand JavaScript. so there is no need for it, no.


How do you display data in other HTML page retrieved from post method?

You can used various methods for retrieving data in HTML. JavaScript, Servlets etc are some ways to get data.


What is toString and when you use it?

The toString method is used to create a string representation of the given object. This is often used to give diagnostic output to the programmer.


What is the use of id in javascript?

ID in JavaScript can be used to refer a control. For example getElementbyID("#name-of-id").