📄️ Using the DOM API (with graphical text: Canvas, SVG, or image file)
Using canvas elements
📄️ Using console.log()
Introduction
📄️ Using the DOM API
DOM stands for Document Object Model. It is an object-oriented representation of structured documents like XML and HTML.
📄️ Using window.alert()
The alert method displays a visual alert box on screen. The alert method parameter is displayed to the user in plain text:
📄️ Using window.confirm()
The window.confirm() method displays a modal dialog with an optional message and two buttons, OK and Cancel. Now, let's take the following example:
📄️ Using window.prompt()
An easy way to get an input from a user is by using the prompt() method.