New course! Every coder should learn Generative AI!
Try a free lesson+ 9
How to make a js square?
3 Answers
+ 8
1. Using div.
2. Play with margin.
3. Add border.
4. Add background-color if you want
+ 8
Use CSS and not JS to make square on webpage.
+ 1
rect(20,40,30,40);