Execute with javascript

Hello, I have to execute the lines of js code below but testproject is not saving all of the code as shown on the image. Please let me know once checked. Kindly response if the problem exists on your end since I encountered this problem last Friday. Thank you.

//run the script every week only

localStorage.setItem(β€˜data20’, 0) //run separately from the code below
var counter1 = localStorage.getItem(β€˜data20’)

const obj1 = {

    mon() {    
      
        //πŸ‘‰οΈ generate the next monday 
        function getNextMonday(date = new Date()) {
          const dateCopy = new Date(date.getTime());
        
          const nextMonday = new Date(
            dateCopy.setDate(
              dateCopy.getDate() + ((7 - dateCopy.getDay() + 1) % 7 || 7),
            ),
          );
        
          return nextMonday;
        }
        
        // πŸ‘‡οΈ Get Monday of Next Week
      var me = getNextMonday(new Date()) // 
        
        var me2 = me.toLocaleDateString();
        var change = me2.replace('/','-'); 
        var change1 = change.replace('/','-'); 
        document.querySelector('#actdte').value= change1;

    },

    tues() {
     
      //πŸ‘‰οΈ generate the next tuesday 
      function getNexttuesday(date = new Date()) {
        const dateCopy = new Date(date.getTime());

        const nexttuesday = new Date(
          dateCopy.setDate(
            dateCopy.getDate() + ((7 - dateCopy.getDay() + 2) % 7 || 7),
          ),
        );

        return nexttuesday;
      }

      // πŸ‘‡οΈ Get tuesday of Next Week
      var me = getNexttuesday(new Date()) // 

      var me2 = me.toLocaleDateString();
      var change = me2.replace('/','-'); 
      var change1 = change.replace('/','-'); 
      document.querySelector('#actdte').value= change1;

    },

    wed() {
             
        //πŸ‘‰οΈ generate the next wednesday 
        function getNextwednesday(date = new Date()) {
          const dateCopy = new Date(date.getTime());

          const nextwednesday = new Date(
            dateCopy.setDate(
              dateCopy.getDate() + ((7 - dateCopy.getDay() + 3) % 7 || 7),
            ),
          );

          return nextwednesday;
        }

        // πŸ‘‡οΈ Get wednesday of Next Week
        var me = getNextwednesday(new Date()) // 

        var me2 = me.toLocaleDateString();
        var change = me2.replace('/','-'); 
        var change1 = change.replace('/','-'); 
        document.querySelector('#actdte').value= change1;
              
          },

    thur() { //manual holidays
              
      //πŸ‘‰οΈ generate the next thursday 
      function getNextthursday(date = new Date()) {
        const dateCopy = new Date(date.getTime());

        const nextthursday = new Date(
          dateCopy.setDate(
            dateCopy.getDate() + ((7 - dateCopy.getDay() + 4) % 7 || 7),
          ),
        );

        return nextthursday;
      }

      // πŸ‘‡οΈ Get thursday of Next Week
      var me = getNextthursday(new Date()) // 

      var me2 = me.toLocaleDateString();
      var change = me2.replace('/','-'); 
      var change1 = change.replace('/','-'); 
      document.querySelector('#actdte').value= change1;


    },

    fri() {
            
                  
      //πŸ‘‰οΈ generate the next friday 
      function getNextfriday(date = new Date()) {
        const dateCopy = new Date(date.getTime());

        const nextfriday = new Date(
          dateCopy.setDate(
            dateCopy.getDate() + ((7 - dateCopy.getDay() + 5) % 7 || 7),
          ),
        );

        return nextfriday;
      }

      // πŸ‘‡οΈ Get friday of Next Week
      var me = getNextfriday(new Date()) // 

      var me2 = me.toLocaleDateString();
      var change = me2.replace('/','-'); 
      var change1 = change.replace('/','-'); 
      document.querySelector('#actdte').value= change1;


    },
    sat() {
         
      //πŸ‘‰οΈ generate the next saturday 
      function getNextsaturday(date = new Date()) {
        const dateCopy = new Date(date.getTime());

        const nextsaturday = new Date(
          dateCopy.setDate(
            dateCopy.getDate() + ((7 - dateCopy.getDay() + 6) % 7 || 7),
          ),
        );

        return nextsaturday;
      }

      // πŸ‘‡οΈ Get saturday of Next Week
      var me = getNextsaturday(new Date()) // 

      var me2 = me.toLocaleDateString();
      var change = me2.replace('/','-'); 
      var change1 = change.replace('/','-'); 
      document.querySelector('#actdte').value= change1;  
    },



    sun() {
       //πŸ‘‰οΈ generate the next sunday 
      function getNextsunday(date = new Date()) {
        const dateCopy = new Date(date.getTime());

        const nextsunday = new Date(
          dateCopy.setDate(
            dateCopy.getDate() + ((7 - dateCopy.getDay() + 7) % 7 || 7),
          ),
        );

        return nextsunday;
      }

      // πŸ‘‡οΈ Get sunday of Next Week
      var me = getNextsunday(new Date()) // 

      var me2 = me.toLocaleDateString();
      var change = me2.replace('/','-'); 
      var change1 = change.replace('/','-'); 
      document.querySelector('#actdte').value= change1;         
          
    },

};

var a = ;

        a.push(function(){  obj1.mon() ; });
        a.push(function(){  obj1.tues() ; });
        a.push(function(){  obj1.wed(); });
        a.push(function(){  obj1.thur() ; });
        a.push(function(){  obj1.fri() ; });
        a.push(function(){  obj1.sat() ; });
        a.push(function(){  obj1.sun(); });

        //dont touch this line of code , this fired up the functions above
        a[counter1]();

counter1++
localStorage.setItem(β€˜data20’, counter1)

is there anyone from the team seen this issue? please let me know. I am currently working in a DOM now, thanks.