Stuck in "Practice exercise - Loops, If-else & Boolean's"

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)))};

And this one too this is the next one, (the code from the Solutions gives me error and does not want to run the program):

var stop1 = Number(prompt("How many children?"))
var allStations = parseInt(stop1)

if(allStations<=30){console.log(stop1)}
else{console.log("The Bus is full", (stop1-30), " need to walk")};

var stop2 = Number(prompt("How many children?"))
var allStations = parseInt(stop1+stop2)

if(allStations<=30){console.log(stop1+stop2)}
else{console.log("The Bus is full ", ((stop1+stop2)-30) , " need to walk")};

var stop3 = Number(prompt("How many children?"))
var allStations = parseInt(stop1+stop2+stop3)

if(allStations<=30){console.log(stop1+stop2+stop3)}
else{console.log("The Bus is full ", ((stop1+stop2+stop3)-30), "need to walk")}