I Forgot How to Use Regex... - JavaScript CodeWars Challenges #1

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

Комментарии • 13

  • @BryanFrederick-h2z
    @BryanFrederick-h2z Год назад

    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!

  • @s2유아마에브리띵
    @s2유아마에브리띵 Год назад +2

    I'm so gald to this video. It can learn about how senior think and solve the problem.

  • @Borracho-y-loco
    @Borracho-y-loco Год назад +4

    cool, first series of this type on the channel?

    • @dcode-software
      @dcode-software  Год назад

      Yep! I'll be doing one a week if people like it

    • @emirturkoglu6752
      @emirturkoglu6752 Год назад

      @@dcode-software I don't know about people but i have liked it so please keep on doing these challenges

  • @sharoonps4285
    @sharoonps4285 Год назад +1

    Plz do 2nd level ❤

  • @supplydemand1319
    @supplydemand1319 Год назад

    do more of these!!!

  • @AhmadJS
    @AhmadJS Год назад +1

    💚

  • @christian-schubert
    @christian-schubert Год назад

    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("");
    }

    • @dcode-software
      @dcode-software  Год назад

      Awesome! That's another one that I didn't see in the list of solutions

  • @FuzeTox
    @FuzeTox Год назад

    Thank you

  • @casull6447
    @casull6447 Год назад +1

    thank you for video and I just use replaceAll method -> word.replaceAll(`${char}`, "")

    • @dcode-software
      @dcode-software  Год назад

      That would have been a lot easier than messing around with regex!