var vergi=function taxCalculator(){
var income=5
var taxRate=0.04;
var totalTax=income*taxRate;
return totalTax ;
document.write( '<p> totalTax </p>')
}
vergi()
________________________________________________________________
<body>
<header>
<h1>Sadelewtirilmiw vergi hesablayicisi</h1>
</header>
<form method="post">
Yekun Geliriniz <input type="text" name='gelir' id='gelir'>
<input type="button" name='hesabla' id='hesabla' value='hesabla' onClick="vergi()">
</form>
<h2></h2>
<p></p>
</body>
Fuad_1 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.