Glitching with Functions

In this lesson, we're diving into the wild world of function-based glitches.

Example 1: Glitchy Functions

      
        function addGlitch(x) {
          return Math.random() * x + 4.2;
        }
        console.log(addGlitch(5)); // Output: 6.4 or 2.8 or 9.5 or ...