im trying to make a function to calculate tax from the function opprod
function chDelivery(delivery){
var deliv_value=delivery.value;
document.myform.deliveryAmt.value= deliv_value;
}
function opprod(myproducts){
var prod =myproducts.value;
document.myform.productp.value= prod;
}
function calcTax(myproducts)
{ var product
product = parseFloat(myproducts);
var tax;
taxout = productp * 0.13;
//return tax;
document.write(taxout);
document.write(product);
}
Microsoft is reportedly seeking help from its biggest cloud rival, Amazon Web Services, to address mounting capacity issues of GitHub. According to a report by Business Insider, this move of the company comes after a series of AI-driven outages on the coding platform, which Microsoft acquired in 2018. Despites its plans to migrate GitHub completely to Azure by 2027, increasing demand from AI coding tools has forced Microsoft to adopt a multi-cloud strategy...............
https://cio.economictimes.indiatimes.com/news/corporate-news/microsoft-taps-aws-for-github-capacity-amid-ai-driven-outages-and-multi-cloud-strategy/131761981
Question
ironsight2000
im trying to make a function to calculate tax from the function opprod
function chDelivery(delivery){ var deliv_value=delivery.value; document.myform.deliveryAmt.value= deliv_value; } function opprod(myproducts){ var prod =myproducts.value; document.myform.productp.value= prod; } function calcTax(myproducts) { var product product = parseFloat(myproducts); var tax; taxout = productp * 0.13; //return tax; document.write(taxout); document.write(product); }Link to comment
https://www.neowin.net/forum/topic/849308-javascript-calculate-tax/Share on other sites
3 answers to this question
Recommended Posts