Fork of Sol LeWitt practice
This example uses JavaScript and the SVG API to create a full-window, grid-like pattern of vertical bars. It calculates the number of bars needed based on the window’s width and a fixed bar length with padding, then dynamically generates and positions each SVG rectangle. The code uses `document.createElementNS` and `setAttribute` to construct the vector graphics, and `console.log` examples in the README illustrate basic variable reassignment with `let` and `var`. The result is a minimalist, striped composition that directly references Sol LeWitt’s geometric wall drawings.
AI-generated description- console.log(): used for output, we use console.log(output) We need to do const x=5 and then console.log(x). The output is 5
or we need to do let x=5 and then console.log(x).
If we do let x=5 and x=10 and then console.log(x), the output is 10. the most recent value is in the memory. need to use let to reassign a value
Another way is taking var x=5; and then x=10. variables can be redecleared.
When we create object we use const object={ num:5 x:2 }; console.log(object.num); console.log(object.x);