How would I get input from the HTML file to put into thejavascript file ? Sect

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadlines.


Order a Similar Paper Order a Different Paper

How would I get input from the HTML file to put into thejavascript file ?

Section 2: JavaScript LanguageBasics

  

class div

{

  

constructor(price, percent,numShare)

{

this.price = price;

this.percent = percent;

this.numShare = numShare;

}

  

calcdivPersh()

{

var div = this.price *(this.percent/100)/4;

  

return div.toFixed(2);

}

calcAnnDiv()

{

var div1 = this.price *(this.percent/100);

  

return div1.toFixed(2);

}

  

calcQrtDiv()

{

var div2 = (this.price *(this.percent/100)/4) *this.numShare;

  

return div2.toFixed(2);

}

calcTlAnDiv()

{

var div3 = ((this.price *(this.percent/100)/4) * this.numShare) * 4;

  

return div3.toFixed(2);

}

calcDivPerc(divShare)

{

return ((divShare *4) * 100 )/this.price;

}

} Attached

"Is this question part of your assignment? We can help"

ORDER NOW
Writerbay.net

Do you need help with this or a different assignment? We offer CONFIDENTIAL, ORIGINAL (Turnitin/LopesWrite/SafeAssign checks), and PRIVATE services using latest (within 5 years) peer-reviewed articles. Kindly click on ORDER NOW to receive an A++ paper from our masters- and PhD writers.

Get a 15% discount on your order using the following coupon code SAVE15


Order a Similar Paper Order a Different Paper