Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
//Create the Model class
function EmailModel(data)
{
//create a storage array for the email addresses
//default to an empty array if there are no addresses
this.emalAddress = data || [];
}
EmailModel.prototype =
{
//method that will add a new email address to the list of stored addresses
add: function(email)
{
//add the new email to the start of the array
this.emailAddresses.unshift(email);
//Publish when a new email is added and pass the new address to
//any listening module
observer.publish("model.email-address.added", email);
},
<!DOCTYPE html>
<html>
<body>
<script type="text/javascript">
var today = new Date();
var UpgradeDay = new Date("November1, 2017");
var msPerDay = 24 * 60 * 60 * 1000;
var timeLeft = (UpgradeDay.getTime() - today.getTime());
var days = timeLeft / msPerDay;
var daysLeft = Math.floor(days);
document.write("There are only<BR> <H4>" + daysLeft + " days </H4> Until Your Computer Upgrade<P>");
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
h1{color: red;}
#para_bold {
font-weight: bold;
}
.para_smallfont {font-style: italic;;}
</style>
<title>Web Page Design</title>
<script>
function sayHello() {
document.write("Hello, Coding Ground!");
}
sayHello();
</script>
</head>
<body>
<h1> Section 1</h1>
<p id = "para_bold"> This paragraph will be in bold</p>
<p class = "para_smallfont"> This is a smaller font paragraph</p>
<p class = "para_smallfont" > this is another smaller font paragraph</p>
<h1> Section 2</h1>
</body>
</html>