Code golfing is trying to make the shortest possible code for a given task. It's mainly a game and very useful for improving your programming skills. In this article, we'll golf some JavaScript code. First we'll make a basic program that prints all the numbers from 1 to 100. Then we'll add the logic to print Fizz, Buzz, or FizzBuzz.
9 Comments
Sort: