If it's in a function, you can just write return "output"; There's also prompts and alerts alert("output"); prompt("output");
Chat with our AI personalities
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.
No. JavaScript can be used only in HTML and other Web Components
write object
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.
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.