After performing calculations, I have assigned specific values to variables.
console.log("Gain_weight is "+ Gain_weight);
console.log("Gain_smoking is "+ Gain_smoking);
console.log("Gain_exercising is "+ Gain_exercising);
console.log("Gain_foodhabits is "+ Gain_foodhabits);
console.log("Gain_parent_heartattack is "+ Gain_parent_heartattack);
console.log("Gain_alcohol "+ Gain_alcohol);
console.log("Gain_occupation "+ Gain_occupation);
console.log("Gain_workinghrs "+ Gain_workinghrs);
In this case, I have values for Gain_weight, Gain_smoking, and more. How can I identify the variable with the highest assigned value using AngularJS?