New to JS and VUE.
I have a variable numberOfItems
in my data which has 10
as its value.
I need to compare if this value is equal to the sum of 5
different variables data
var numberOfItems = 10
var destinations = (this.campaign.shipments_ue + this.campaign.shipments_uk + this.campaign.shipments_islas + this.campaign.shipments_peninsula + this.campaign.shipments_international)
I get 22222
in destinations
value instead of 10
, what method should I use to sum them up so I can compare them?
Thanks!