2 ms·
Permutations are more a IQ test. The closest we have in JS is implementing a "marquee tag". Traversing JSON, or cloning an object or array is actually somewhat
by z3t4 11y ago
Permutations are more a IQ test. The closest we have in JS is implementing a "marquee tag".
Traversing JSON, or cloning an object or array is actually somewhat common.
But I find it funny that the solution is to make a Class, having a "for in" loop, and variable declarations in a loop. It's clear that the one who made that solution has never done any serious JS coding silly smile
I could make another rant about making a new Class for each problem. You want to write code that is easily removed, not complexed!