I need some assistance with my code as I seem to have one incorrect answer when using the if statement.
The error code that I am encountering is ts1109 and I am not sure why VS Code is showing this.
Thank you in advance for any help provided :)
var calculator = new Vue ({
el:'#calculator',
data: {
price:'',
purcentage: '',
minimum: '',
maximum: '',
calcPayment: ''
},
computed: {
calcPayment: function(e){
var p= this.price / 100 * this.purcentage;
var r= if (p < this.minimum) {
return this.minimum
} else if (p > this.maxiumum) {
return this.maximum
} else {
return p
};
},
}
})