Can you solve this Christmas JS Coding Challenge?

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ธ.ค. 2024

ความคิดเห็น • 14

  • @AnthonySistilli
    @AnthonySistilli  9 วันที่ผ่านมา

    Solve this problem & Join Scrimba's #Javascriptmas challenge! They're giving away a M3 Macbook Air, and so much more!!
    View my solution: scrimba.com/exercise-s0rpi92og7?via=AnthonySistilli
    Join the challenge:
    scrimba.com/javascriptmas-c0javascriptmas?via=AnthonySistilli

  • @kkMihai1337
    @kkMihai1337 9 วันที่ผ่านมา +8

    the investment put in this video is huge (christmas hat costs $5) 😱😱😱😱

  • @TiebeVs
    @TiebeVs 8 วันที่ผ่านมา

    Congrats on 100k! I have been watching since one of the first portfolio reviews. Road to 200k

  • @boyangli9489
    @boyangli9489 8 วันที่ผ่านมา +1

    use replace with a function as argument, i create a new object for the replacement mapping:
    function emojifyWord(word) {
    return (emojiMapping[word] ??
    word.replace(/^:([a-z_]+):$/, (match, p1) => hackedEmojis[p1] ?? word));
    }
    function emojifyPhrase(phrase) {
    return phrase.replace(/([^\s]+)/g, (match, p1) => emojifyWord(p1));
    }

    • @boyangli9489
      @boyangli9489 8 วันที่ผ่านมา

      Btw, I love how you mock scrum masters in your video.

  • @Adnan_Inspires_Official
    @Adnan_Inspires_Official 9 วันที่ผ่านมา

    Bro Is So Close To a 100k

  • @keiv2004
    @keiv2004 9 วันที่ผ่านมา

    Well... if the phrase includes some double spaces between words this is not working (it will remove the extra spaces also) right?

  • @asagiai4965
    @asagiai4965 8 วันที่ผ่านมา

    Question can't javascript compare 😊 === 😊?
    Because technically we can just technically compare values from the hackedEmojis.
    Another way maybe is to compare Ascii if they have.
    Or am I wrong?

  • @met-lh6sz
    @met-lh6sz 9 วันที่ผ่านมา

    hey bro, do you think AI will replace programmers in the next years? bc im not sure if i should get a degree

    • @moritz6526
      @moritz6526 8 วันที่ผ่านมา +1

      Try to setup an amplify gen2 app with chat-gpt, it will answer your question

    • @met-lh6sz
      @met-lh6sz 8 วันที่ผ่านมา

      @moritz6526 think of ai in the next 10 years

    • @AgoingFar
      @AgoingFar 8 วันที่ผ่านมา

      @@met-lh6sz ai isnt going to be able to reason/use logic in 10 years.(currently ai works by predicting the next word in its response via probability) If it somehow does then every job will be screwed and you'll probably end up dying to a robot.

    • @myota9889
      @myota9889 8 วันที่ผ่านมา

      No man, tested AI with a problem that isn't exactly easy but isn't the most difficult either. Just requires some lateral thinking. On leetcode the problem is: 1861. Rotating the Box.
      It failed miserably. I kept telling the AI that the output was wrong, I changed parameters, I wrote everything out more specifically, but it kept spitting out the same old crappy block of code that didn't do anything to actually solve the problem. I agree with @AgoingFar. It can't reason. Its like it regurgitates blocks of code that someone, somewhere else inputted without any idea how it actually works.