Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
i've fixed! just lost 'let'! thanks anyway!
Your code is not correctly formated so it's hard to see what it does actually. Please see here how to format code: https://docs.codewars.com/references/markdown/#code-block
Maybe your variable is not properly declared. See here: https://www.w3schools.com/js/js_variables.asp
If you really know nothing about programming it'll be hard to teach you all. You need to search online with the error messages you get. The whole documentation of JavaScript is available online.
I advice you to also read this: https://docs.codewars.com/training/troubleshooting/
but i print return min after }
Hi. You return the result immediately, after parsing the first two elements. You must
return
only after the loop has been completed.This comment is hidden because it contains spoiler information about the solution
Have a look there: https://docs.codewars.com/getting-started/solving-kata
Use a spoiler flag when you post code or give clues to a solution.
Thanks :)
This comment is hidden because it contains spoiler information about the solution
lua translation
@ethan67: you meant to see the
input
, I guess? ;)In Javascript, what's the point of having to write the function inside a class, unused besides? Other languages (at least a great majority, though I didn't check them all) have a single function and that seems natural.
The array is given, it's
arr
.The array is given / will be passed as the argument in the function.
You can read this if you are having trouble.
https://docs.codewars.com/getting-started/solving-kata
Using python langauge
Im a beginner coder ,is the array given or i should create one?