[Solved] ” Missing ; before statement ” In a long code [closed]


I have updated the function… check now?

navigator.geolocation.getCurrentPosition(function(position){
    var long = position.coords.longitude; 
    var lat = position.coords.latitude; 
    var theDateC = new Date(); 
    var D = (367*theDateC.getFullYear())-(parseInt((7/4)*(theDateC.getFullYear+parseInt((theDateC.getMonth()+9)/12))))+parseInt(275*(theDateC.getMonth()/9))+theDateC.getDate()-730531.5; 
    var L = 280.461+0.9856474*D; 
    var M = 357.528+0.9856003*D; 
    var Lambda = L +1.915*Math.sin(M)+0.02*Math.sin(2*M); 
    var Obliquity = 23.439-0.0000004*D; 
    var Alpha = Math.atan (Math.cos(Obliquity)*Math.tan(Lambda)); 
    Alpha = Alpha - (360 * parseInt(Alpha/360)); 
    Alpha = Alpha + 90 * ( Math.trunc ( Alpha / 90 ) - Math.trunc(Alpha / 90)); 
    var ST = 100.46 + 0.985647352 *D; 
    var Dec = Math.asin(Math.sin (Obliquity )*Math.sin(Lambda)); 
    var Noon = Alpha - ST; 
    var UTNoon = Noon - long; 
    if (Date().substring(Date().length - 3, Date().length) === "GMT") {
        var Zone = 0;
    } else {
        var Zone = Number(Date().substring(Date().length - 4, Date().length - 2)) + Number(Number(Date().substring(Date().length - 2, Date().length) * 60)) / 60; 
    } 
    var LocalNoon = UTNoon / 15 + Zone; var AsrAlt = Math.atan (1+ Math.tan( lat - Dec)); 
    var AsrArc = Math.acos ((Math.sin(90- AsrAlt )-Math.sin(Dec)*Math.sin(lat))/(Math.cos(Dec)*Math.cos(lat))); AsrArc = AsrArc / 15; 
    var AsrTime = LocalNoon + AsrArc; alert("وقت العصر : " + AsrTime); 
});

8

solved ” Missing ; before statement ” In a long code [closed]