The alert method is the single worst thing that has ever happened in the history of the internet. It creates annoying pop-up windows that have been used by scammers and advertisers forever. And yet, they still exist…
alert("Whoever created this method is going to rot in hell.")
They really are…
Similar to alert, this opens a pop-up window, but it includes an input field and asks the user for a specific piece of information. For example:
prompt("What is your Social Security #")
and the input will be added to the console
This would actually get useful when you can assign variables to the user prompt such as:
The ethical younger brother of alert(). This logs something in the console.
The most used method of them all.
this will simply clear the console to give you clean working space. There is no useful way to screenshot this because I will just be showing a clear console…