I'm a newbie when it comes to JavaScript in Codewars, I did a lot of Python with the program in an online bootcamp I just completed, but mostly went along with some weekly meetings and not much stuck. I want to go into front end development, and Codewars overall is a big weak spot for me when it comes to interview prep. So, yes, please keep making more of this style of video, this is very helpful for my brain to wrap my head around the idea behind CW as a whole and how to approach the problems. Thanks!
This is SO much fun, immediately booted up the computer and coded along 😆 Here's my solution for that last tidbit: function duplicateEncode(word) { return [...word.toLowerCase()].reduce((acc, cur) => { [...word.toLowerCase()].filter(c => cur === c).length > 1 ? acc.push(")") : acc.push("("); return acc; }, []).join(""); }
I'm a newbie when it comes to JavaScript in Codewars, I did a lot of Python with the program in an online bootcamp I just completed, but mostly went along with some weekly meetings and not much stuck. I want to go into front end development, and Codewars overall is a big weak spot for me when it comes to interview prep. So, yes, please keep making more of this style of video, this is very helpful for my brain to wrap my head around the idea behind CW as a whole and how to approach the problems. Thanks!
I'm so gald to this video. It can learn about how senior think and solve the problem.
cool, first series of this type on the channel?
Yep! I'll be doing one a week if people like it
@@dcode-software I don't know about people but i have liked it so please keep on doing these challenges
Plz do 2nd level ❤
do more of these!!!
💚
This is SO much fun, immediately booted up the computer and coded along 😆
Here's my solution for that last tidbit:
function duplicateEncode(word) {
return [...word.toLowerCase()].reduce((acc, cur) => {
[...word.toLowerCase()].filter(c => cur === c).length > 1 ? acc.push(")") : acc.push("(");
return acc;
}, []).join("");
}
Awesome! That's another one that I didn't see in the list of solutions
Thank you
thank you for video and I just use replaceAll method -> word.replaceAll(`${char}`, "")
That would have been a lot easier than messing around with regex!