# Javascript, 22 bytes

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

Defines an anonymous function.

If only `*` repeated strings in Javascript. *sighs*