9
2
I'm attempting to create a function over multiple lines.
Parameters of the challenge:
- Function returns 'barbarian'
- Only 2 characters per line
- 40 lines maximum. I keep trying to use a fat arrow to declare my function, but fat arrows don't seem to work if you don't have them connected.
Source of Challenge: https://www.codewars.com/kata/multi-line-task-plus-plus-hello-world
My current work:
f=
(
)=>
'\
b\
a\
r\
b\
a\
r\
i\
a\
n\
s\
'
This works, but the ')=>' is 3 characters long. I really just want to know how it is possible to even stretch out the creation of a function. I can't find any info on it anywhere as it's obviously not very practical.
2Related? – Shieru Asakoto – 2018-03-02T23:35:42.090
2
Welcome to PPCG! Unfortunately, this challenge does not have an objective winning criterion, and I am voting to close this challenge until rectified. In the future, please use the sandbox to receive feedback on your question before it is posted.
– FantaC – 2018-03-02T23:40:32.117Also Stack Overflow would be a better place for this, if worded differently
– FantaC – 2018-03-02T23:52:07.937@tfbninja Thanks for the heads up. I think I just will have to restructure the question. StackOverflow sent me here in the first place. – theNewfelll – 2018-03-03T00:11:31.943
5I think this is fine as a question asking for tips to solve a particular code challenge and have voted to reopen. – Laikoni – 2018-03-03T04:03:52.073
6I agree with Laikoni that this is definitely asking for advice on dealing with a code layout constraint (i.e., restricted source) rather than asking a programming question like at SO. – xnor – 2018-03-03T04:09:34.207