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.
there is actually no need to save into variables the functions in our answers to these exercises, as we're not asked to then use them as parameters in higher order functions, so we can use a function expression, rather than a function declaration (plus, especially with the concise arrow syntax, we can use functions diretly as argumemts in other functions, or define and call them at the same time as an IIFE, eg. ((n)=> {console.log(n=5);}10); that logs 15)
when you want to solve a problem, better way is using the fundamentals of the language not the built-in function.
Classes are just syntactic sugar meant to encapsulate code and abstract(hiding unnecessary details) code. The code would still work in this case without classes and by simply just writing the function
good shot
Your codes are very clean
This comment is hidden because it contains spoiler information about the solution
Yes Of Course it can simply work without classes. Just write the function outside of the class code block literal and invoke the function like this: findSmallestInt([23, 45, 67])
no way bruh
"That one guy"? This is the second most popular solution. 😆
there is always that one guy with the arrow functions
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
same here lol
This comment is hidden because it contains spoiler information about the solution
It was good practice.
Loading more items...