Hey guys I am just looking for opinion on the : Practice exercise - Boolean’s & If,Else statements .23 about the Tax program. I wrote the code a little different and just if you let me know if it is accurate or i should learn to do it like it is in the answers? Thanks.
Heres the code:
var income = prompt("What is your income?")
var over1000 = income-1000
if(income<1000){console.log("Your tax is ", (income*0.1))}
else{console.log("Your tax is ",(100+(over1000*0.3)))};