Skip to main content
100%

Gist d740d28ab2549ada2394dbbe9728cd71

✓ Published0🌍 Public
MMistyBlunch
Last edited Jul 19, 2019
Created on Jul 19, 2019

This visualization prints an alternating checkerboard pattern of spaces and hash symbols to the console, using standard JavaScript string concatenation and a nested `for` loop structure. The outer loop controls each row, while the inner loop builds the pattern by checking whether the row and column indices are even or odd. The code defines a fixed grid size of 8, generates each line into a string variable, and logs it with `console.log` before resetting the string for the next iteration. No external libraries are used; it relies solely on core JavaScript syntax and the console API.

AI-generated description

Similar vizzes