crus4

logo

JavaScript Output

JavaScript Output JavaScript Output specifies the ways to display the output of a given JS code. The output can be specified by using four different ways. These are: InnerHTML document.write() window.alert() console.log() 1. InnerHTML:- This method is used to access an element. It specifies the HTML content. Example Here the id attribute specifies the HTML […]