const average = (...nums) => nums.reduce((acc, val) => acc + val, 0) / nums.length;
      average(...[1, 2, 3]); // 2
      average(1, 2, 3); // 2
      
      Javascript language logo

      Average Of Numbers

      Returns Average Of Numbers

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.