I am new to JavaScript and struggling to understand the logic in my code. I have attempted to write some logic below, but I can't quite figure out what code to use to get the desired result. Could someone please assist me in correcting my code and explaining how to achieve the intended outcome?
JS
// Global Variable
var a = 40;
var b = 70;
function var_ops_5() {
// Local Variables
var a = 4;
var b = 7;
var c = a + b;
var d = a * b;
var e = a % c;
};