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

Javascript, 22 bytes

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

Defines an anonymous function.

If only * repeated strings in Javascript. sighs

DanTheMan
  • 4.1k
  • 16
  • 41