Simple Javascript Solution
\nvar minOperations = function(nums) {\n    if(nums.length < 2) return 0;\n    let count = 0;\n    for(let i = 1; i<nums.length; i++) {\n       if(nums[i] <= nu
```\nvar minOperations = function(nums) {\n    if(nums.length < 2) return 0;\n    let count = 0;\n    for(let i = 1; i<nums.length; i++) {\n       if(nums[i] <= nums[i-1]) {\n           let change = nums[i-1] - nums[i] + 1;\n           count += change;\n           nums[i] += change;\n       }\n    }\n    \n    return count;\n};\n```
['JavaScript']