6. prompt and alert in JavaScript
prompt Function:
The prompt function is used to display a dialog box that prompts the user for input. It takes two optional parameters:
Message (prompt text): A string that will be displayed as a message in the prompt dialog.
Default (default value...
itchmyback.hashnode.dev2 min read