`You're ${['f', 'h'][Math.round(Math.random())]}ired`
I posted an explanation of this solution to evarx78's comment. I hope it will help you too.
Hi, I like the comments in the code, but a bit of feedback: the final statement will never be reached, and if it could be, it doesn't perform a valid type check.
wat
beautiful
lol
what
nice
you're hired
they join the elements in the array without spaces
if you wanted to join all the elements with commas between them you'd use .join(', ')
This comment is hidden because it contains spoiler information about the solution
Instead of 'triangle' it should have been 'square', don't know why I put that lol Either way, hope you enjoy it. Happy coding!
Loading collection data...
I posted an explanation of this solution to evarx78's comment. I hope it will help you too.
Hi, I like the comments in the code, but a bit of feedback: the final statement will never be reached, and if it could be, it doesn't perform a valid type check.
wat
beautiful
lol
what
nice
you're hired
they join the elements in the array without spaces
if you wanted to join all the elements with commas between them you'd use .join(', ')
This comment is hidden because it contains spoiler information about the solution
Instead of 'triangle' it should have been 'square', don't know why I put that lol
Either way, hope you enjoy it. Happy coding!