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.
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.
Not declaring variables is bad practice
Without 'use strict' this will work