Skip to main content
Fixed order of slashes
Source Link
DanTheMan
  • 4.1k
  • 16
  • 41

Javascript, 22 bytes

n=>"n=>"\\/\\"[n%2]"[n%2].repeat(n)

Defines an anonymous function.

If only * repeated strings in Javascript. sighs

Javascript, 22 bytes

n=>"/\\"[n%2].repeat(n)

Defines an anonymous function.

If only * repeated strings in Javascript. sighs

Javascript, 22 bytes

n=>"\\/"[n%2].repeat(n)

Defines an anonymous function.

If only * repeated strings in Javascript. sighs

Source Link
DanTheMan
  • 4.1k
  • 16
  • 41

Javascript, 22 bytes

n=>"/\\"[n%2].repeat(n)

Defines an anonymous function.

If only * repeated strings in Javascript. sighs