JavaScript Display Possibilities

JS 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().

Using innerHTML

Mathematical operation using inner HTML

Using document.write()

Using Windows.alert

We can also use alert box to display data

Using console.log()

For debugging purposes, you can use the console.log() method to display data.

Press F12 and click on console to see whether your program is reaching this point or not.