I am currently working with Nuxt version 2.8.1
There are a total of 100 input fields in my form, all of which are number inputs.
My goal is to calculate the sum of all these numbers to get the total.
This is what I have tried so far:
computed: {
total() {
return this.form.one + this.form.two
}
}
Expected Outcome:
5 + 5 = 10
Actual Output Received:
5 + 5 = 55
If I leave the value for 'two' empty, I get a result of 5null
I cannot seem to figure out why this is happening.