Build a square (7kyu): Codewars (TDD in JavaScript)

Опубликовано: 10 Октябрь 2024
на канале: Styled JavaScript
959
14

Hi! It's Friday. So let's chill and do something easy today. If this is your first time here and you want to learn #Frontend and #JavaScript, start right now by subscribing, and don't forget to turn on the subtitles.

Let's solve today kata titled "Build a square." I will give you an integer. Give me back a shape that is as long and wide as the integer. The #integer will be a whole number between 0 and 50. Example. "n = 3" so expect a square 3x3 back just like below as a string. Okay, let's try.

My code is available on GitHub https://github.com/a-merezhanyi/codewars

Used:
looperman.com: Chiptune Melody by L0neW0lf
orangefreesounds.com: Small Bell by Alexander
soundcloud.com/eric-skiff/come-and-find-me: Come and Find Me by Eric Skiff