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.
WOW!...🤯
https://docs.codewars.com/getting-started/solutions/#best-practices
Just in case:
VM1509:1 Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src chrome://resources chrome://webui-test 'self'".
🤯
true
dude. this is crazy.
Now THAT is clever
Hi! Why is this vote as Best Practices? (Honestly asking, I'm just learning)
Of course, "brevity is the soul of wit" ..... But I would like to emphasize 3 points here:
Safety: Using eval can be dangerous if the input is not fully controlled. This can lead to the execution of unwanted or malicious code, which can be a security risk.
Performance: eval can be slower than other code execution methods because it requires interpreting the string as code.
Debugging and readability: Code that uses eval can be more difficult to debug and maintain. This can make the code less predictable and harder to understand.
I'm not judging, just sharing my opinion. Alternatively, you can use switch-case or map.
???
I am jealous
I want to reach this level of skill.
what is this sorcery? was your father a mac or a man?
I agree
This comment is hidden because it contains spoiler information about the solution
Loading more items...