i am trying to use this fuction in library file incomejs to
i am trying to use this fuction in library file income.js , to use the taxes html pager to load the library and calculuate the income tax,
 {
 var number;
 function Icometace(income, itemized)
 // Assynes: income .=0, itemzed .=0
 // Returns: flat tax (13%) due after deductions
 {
var deduction, taxableIcome, total tax;
deduciton= Math.max(itermized, 4150):
 taxableIncome = Math.max(income - debuction, o);
 toatltax = 0.13*tableTincome
return totaltax;
 }
 <html>
 <head>
 <title> ESP Test </title>
 <script type=\"text/javascript\">
 
 {
 var number;
 function Icometace(income, itemized)
 // Assynes: income .=0, itemzed .=0
 // Returns: flat tax (13%) due after deductions
 {
var deduction, taxableIcome, total tax;
deduciton= Math.max(itermized, 4150):
 taxableIncome = Math.max(income - debuction, o);
 toatltax = 0.13*tableTincome
return totaltax;
 }
 
 }
 </script>
 </head>
<body>
 <div style=\"text-align:center\">
 <h2>ESP Test</h2>
 <p>
 Think of a number between 1 and 4, then click the button to see
 if you were right.
 </p>
 <input type=\"button\" value=\"income 100000.00\" onclick=\"itemized (12017.50);\">
 <input type=\"button\" value=\"income 42500.00\" onclick=\"itemized(8900.99);\">
 <input type=\"button\" value=\"income 13267.45\" onclick=\"itemized(14000.00);\">
 
 <hr>
 <div id=\"outputDiv\"></div>
 </div>
 </body>
 </html>
Solution
<script type=\"text/javascript\">
{
 var number;
 function Icometace(income, itemized)
 // Assynes: income .=0, itemzed .=0
 // Returns: flat tax (13%) due after deductions
 {
var deduction, taxableIcome, total tax;
deduciton= Math.max(itermized, 4150):
 taxableIncome = Math.max(income - debuction, o);
 toatltax = 0.13*tableTincome
return totaltax;
 }
 <html>
 <head>
 <title> ESP Test </title>
 <script type=\"text/javascript\">
 
 {
 var number;
 function Icometace(income, itemized)
 // Assynes: income .=0, itemzed .=0
 // Returns: flat tax (13%) due after deductions
 {
var deduction, taxableIcome, total tax;
deduciton= Math.max(itermized, 4150):
 taxableIncome = Math.max(income - debuction, o);
 toatltax = 0.13*tableTincome
return totaltax;
 }
 
 }
 </script>
 </head>
<body>
 <div style=\"text-align:center\">
 <h2>ESP Test</h2>
 <p>
 Think of a number between 1 and 4, then click the button to see
 if you were right.
 </p>
 <input type=\"button\" value=\"income 100000.00\" onclick=\"itemized (12017.50);\">
 <input type=\"button\" value=\"income 42500.00\" onclick=\"itemized(8900.99);\">
 <input type=\"button\" value=\"income 13267.45\" onclick=\"itemized(14000.00);\">
 
 <hr>
 <div id=\"outputDiv\"></div>
 </div>
 </body>
 </html>



