Post History
JavaScript (Node.js), 57 56 bytes f=(a,b='/\\')=>a--?''.padEnd(a)+b+` `+f(a,'/'+b+'\\'):'' Try it online!
Answer
#2: Post edited
# [JavaScript (Node.js)], 57 bytes- <!-- language-all: lang-javascript -->
f=(a,b='/\\')=>a--?' '.repeat(a)+b+`- `+f(a,'/'+b+'\\'):''
[Try it online!][TIO-khnee5kj]- [JavaScript (Node.js)]: https://nodejs.org
[TIO-khnee5kj]: https://tio.run/##FcpBDoMgEAXQfU/R3YdQsG5rsBdx4ahDootCYLTHR12@5G10UJnzmsT@4sK1Bq/oNXk0wwDte7L2iydc5sQkirSZzPgYTbgWGlzCHT9A7VKOM5fiiixxF/fPq7AKqn1r3dUT "JavaScript (Node.js) – Try It Online"
- # [JavaScript (Node.js)], <del>57</del> 56 bytes
- <!-- language-all: lang-javascript -->
- f=(a,b='/\\')=>a--?''.padEnd(a)+b+`
- `+f(a,'/'+b+'\\'):''
- [Try it online!][TIO-khngd8uo]
- [JavaScript (Node.js)]: https://nodejs.org
- [TIO-khngd8uo]: https://tio.run/##Fcq7DoMgGAbQ3Rf5IBS0aw069S0c@OWS2EEIYH181PEk50d/KjZvqco9Ot9a0Ixeq0a/LOB6IilnQCVy390x4mIVpjMi3Ak9buF5H6CNKUfrS1GlunhUdeatehbYe@B8bBc "JavaScript (Node.js) – Try It Online"
#1: Initial revision
# [JavaScript (Node.js)], 57 bytes <!-- language-all: lang-javascript --> f=(a,b='/\\')=>a--?' '.repeat(a)+b+` `+f(a,'/'+b+'\\'):'' [Try it online!][TIO-khnee5kj] [JavaScript (Node.js)]: https://nodejs.org [TIO-khnee5kj]: https://tio.run/##FcpBDoMgEAXQfU/R3YdQsG5rsBdx4ahDootCYLTHR12@5G10UJnzmsT@4sK1Bq/oNXk0wwDte7L2iydc5sQkirSZzPgYTbgWGlzCHT9A7VKOM5fiiixxF/fPq7AKqn1r3dUT "JavaScript (Node.js) – Try It Online"