(1) alert() pops up a dialog box on the page, used for early JS debugging.
(2) Confirm() A dialog box pops up on the page, which is often used with if judgment.
(3) console.log() Input information to the console for js debugging.
(4) prompt() pops up a dialog box to receive information entered by the user.