alert by code stackoverflow

Solutions on MaxInterview for alert by code stackoverflow by the best coders in the world

showing results for - "alert by code stackoverflow"
Ana Paula
25 Jun 2020
1<script language="javascript" type="text/javascript">
2alert('This is what an alert message looks like.');
3</script>
4
5function showAlert() {
6    var country = "Fiji";
7    var city = "Suva";
8    alert('The city of ' + city + ' is located in ' + country + '.');
9}
10
11<input type="button" value="Click Here" onClick="showAlert();">