JavaScript (Node.js), (削除) 79 (削除ここまで) 61 bytes
n=>'true int var for in if new try of do'.split` `.slice(0,n)
#How :
How :
n => // the input (will be an integer) between 1 and 10 (both inclusive)
' // beginning our string
true int var for in if new try of do'. // space separated reserved words
split` `. // turn it into an array every time there is a space we add to array
slice(0,n) // return elements of array starting from 0 and upto n
If using operators is allowed (most likely will be since they are reserved words) then :
JavaScript (Node.js), (削除) 26 (削除ここまで) 25 bytes
n=>'|/^%+<&*-='.slice(-n)
Saved 8 bytes thanks to @Adam and 1 more byte thanks to @l4m2
How :
n => // input (integer from 0-9 inclusive)
'|/^%+<&*-='. // operators make a shorter string
slice(-n) // outputs string chars from last upto n
// this works since all operators are single chars and not multi chars.
JavaScript (Node.js), (削除) 79 (削除ここまで) 61 bytes
n=>'true int var for in if new try of do'.split` `.slice(0,n)
#How :
n => // the input (will be an integer) between 1 and 10 (both inclusive)
' // beginning our string
true int var for in if new try of do'. // space separated reserved words
split` `. // turn it into an array every time there is a space we add to array
slice(0,n) // return elements of array starting from 0 and upto n
If using operators is allowed (most likely will be since they are reserved words) then :
JavaScript (Node.js), (削除) 26 (削除ここまで) 25 bytes
n=>'|/^%+<&*-='.slice(-n)
Saved 8 bytes thanks to @Adam and 1 more byte thanks to @l4m2
How :
n => // input (integer from 0-9 inclusive)
'|/^%+<&*-='. // operators make a shorter string
slice(-n) // outputs string chars from last upto n
// this works since all operators are single chars and not multi chars.
JavaScript (Node.js), (削除) 79 (削除ここまで) 61 bytes
n=>'true int var for in if new try of do'.split` `.slice(0,n)
How :
n => // the input (will be an integer) between 1 and 10 (both inclusive)
' // beginning our string
true int var for in if new try of do'. // space separated reserved words
split` `. // turn it into an array every time there is a space we add to array
slice(0,n) // return elements of array starting from 0 and upto n
If using operators is allowed (most likely will be since they are reserved words) then :
JavaScript (Node.js), (削除) 26 (削除ここまで) 25 bytes
n=>'|/^%+<&*-='.slice(-n)
Saved 8 bytes thanks to @Adam and 1 more byte thanks to @l4m2
How :
n => // input (integer from 0-9 inclusive)
'|/^%+<&*-='. // operators make a shorter string
slice(-n) // outputs string chars from last upto n
// this works since all operators are single chars and not multi chars.
JavaScript (Node.js), (削除) 79 (削除ここまで) 61 bytes
n=>'true int var for in if new try of do'.split` `.slice(0,n)
#How :
n => // the input (will be an integer) between 1 and 10 (both inclusive)
' // beginning our string
true int var for in if new try of do'. // space separated reserved words
split` `. // turn it into an array every time there is a space we add to array
slice(0,n) // return elements of array starting from 0 and upto n
If using operators is allowed (most likely will be since they are reserved words) then :
JavaScript (Node.js), (削除) 3426 (削除ここまで) 2625 bytes
n=>'|/^%+<&*-='.substrslice(-n)
Saved 8 bytes thanks to @Adam and 1 more byte thanks to @l4m2
How :
n => // input (integer from 0-9 inclusive)
'|/^%+<&*-='. // operators make a shorter string
substrslice(-n) // outputs string chars from last upto n
// this works since all operators are single chars and not multi chars.
JavaScript (Node.js), (削除) 79 (削除ここまで) 61 bytes
n=>'true int var for in if new try of do'.split` `.slice(0,n)
#How :
n => // the input (will be an integer) between 1 and 10 (both inclusive)
' // beginning our string
true int var for in if new try of do'. // space separated reserved words
split` `. // turn it into an array every time there is a space we add to array
slice(0,n) // return elements of array starting from 0 and upto n
If using operators is allowed (most likely will be since they are reserved words) then :
JavaScript (Node.js), (削除) 34 (削除ここまで) 26 bytes
n=>'|/^%+<&*-='.substr(-n)
Saved 8 bytes thanks to @Adam
How :
n => // input (integer from 0-9 inclusive)
'|/^%+<&*-='. // operators make a shorter string
substr(-n) // outputs string chars from last upto n
// this works since all operators are single chars and not multi chars.
JavaScript (Node.js), (削除) 79 (削除ここまで) 61 bytes
n=>'true int var for in if new try of do'.split` `.slice(0,n)
#How :
n => // the input (will be an integer) between 1 and 10 (both inclusive)
' // beginning our string
true int var for in if new try of do'. // space separated reserved words
split` `. // turn it into an array every time there is a space we add to array
slice(0,n) // return elements of array starting from 0 and upto n
If using operators is allowed (most likely will be since they are reserved words) then :
JavaScript (Node.js), (削除) 26 (削除ここまで) 25 bytes
n=>'|/^%+<&*-='.slice(-n)
Saved 8 bytes thanks to @Adam and 1 more byte thanks to @l4m2
How :
n => // input (integer from 0-9 inclusive)
'|/^%+<&*-='. // operators make a shorter string
slice(-n) // outputs string chars from last upto n
// this works since all operators are single chars and not multi chars.
JavaScript (Node.js), (削除) 79 (削除ここまで) 61 bytes
n=>'true int var for in if new try of do'.split` `.slice(0,n)
#How :
n => // the input (will be an integer) between 1 and 10 (both inclusive)
' // beginning our string
true int var for in if new try of do'. // space separated reserved words
split` `. // turn it into an array every time there is a space we add to array
slice(0,n) // return elements of array starting from 0 and upto n
If using operators is allowed (most likely will be since they are reserved words) then :
JavaScript (Node.js), (削除) 34 (削除ここまで) 26 bytes
n=>'|/^%+<&*-='.substr(-n)
Saved 8 bytes thanks to @Adam
How :
n => // input (integer from 0-9 inclusive)
'|/^%+<&*-='. // operators make a shorter string
substr(-n) // outputs string chars from last upto n
// this works since all operators are single chars and not multi chars.
JavaScript (Node.js), (削除) 79 (削除ここまで) 61 bytes
n=>'true int var for in if new try of do'.split` `.slice(0,n)
If using operators is allowed (most likely will be since they are reserved words) then :
JavaScript (Node.js), (削除) 34 (削除ここまで) 26 bytes
n=>'|/^%+<&*-='.substr(-n)
Saved 8 bytes thanks to @Adam
JavaScript (Node.js), (削除) 79 (削除ここまで) 61 bytes
n=>'true int var for in if new try of do'.split` `.slice(0,n)
#How :
n => // the input (will be an integer) between 1 and 10 (both inclusive)
' // beginning our string
true int var for in if new try of do'. // space separated reserved words
split` `. // turn it into an array every time there is a space we add to array
slice(0,n) // return elements of array starting from 0 and upto n
If using operators is allowed (most likely will be since they are reserved words) then :
JavaScript (Node.js), (削除) 34 (削除ここまで) 26 bytes
n=>'|/^%+<&*-='.substr(-n)
Saved 8 bytes thanks to @Adam
How :
n => // input (integer from 0-9 inclusive)
'|/^%+<&*-='. // operators make a shorter string
substr(-n) // outputs string chars from last upto n
// this works since all operators are single chars and not multi chars.