Reputation:
const calcTip = function (bill) {
if (bill >= 50 && bill =< 300) {
return 0.15 * bill;
} else {
return 0.2 * bill;
}
}
New to this, still early learning phase.
Just cannot see what is causing the error in the second line?
Any help would be much appreciated.
Upvotes: 0
Views: 59