FizzBuzz solution not executing?

This is the code I’ve written to try and execute the solution for the fizzbuzz problem in the console:

FizzBuzz solution which doesnt work

Can someone help me figure out why the console is failing to execute this code?

Make sure you post the entire code in a single statement in the console tab. Or else each line will have a different context of its own.

Do share your console screenshot if the issue still persists.

A.Malik