sajith-s
9/22/2017 - 7:07 AM

alert.js

alert("Hello! I am an alert box!!");

alert("Hello\nHow are you?"); //line-break

alert(location.hostname); //Alert the hostname of the current URL:

var country = "Fiji";
var city = "Suva";
alert('The city of ' + city + ' is located in ' + country + '.');