function to give alert in javascript code example
Example 1: how to make an alert in html
<script>
alert('this is an alert');
</script>
Example 2: simple alert program in javascript
alert("this is the alert")
<script>
alert('this is an alert');
</script>
alert("this is the alert")