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().
We can also use alert box to display data
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.