# Utility Function

### Alert
Alert is used to display a message in the browser.
![alkert.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1637807508037/Mmm5yS8P8.jpeg)

### Confirm
Confirm is used to ask user consent  before perform any action.
- It shows a message with two button Cancel and Ok
- true(When you click Ok)
- false(When you click Cancel)
![confirm.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1637807171888/4brxkAM9B.jpeg)


### Prompt
Prompt is used to take input from the user.

- It shows two button Ok and Cancel.
- clicking Ok user give the information that the user added as result.
- Prompt always written a string value

![prompt.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1637807193562/lkwMBxOFj.jpeg)

### Console.log
Used to display any message in the browser.

```js
eg- 
console.log("Hello World") 
Hello World
```


- These function are used to fix Error in the code.

- We Usaually use console.log to fix the error in the code

- We can also pass multiple value of any value type.like string and number and it will display one next to Each Other.



