PRACTICE JS Challenges Prior Interview (2022)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

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

  • @ranjanakumari520
    @ranjanakumari520 2 ปีที่แล้ว +1

    Very Helpful... Indeed if someone practices this before an interview then it's enough. Please get one more series of it.

    • @ASoftwareEngineer
      @ASoftwareEngineer  2 ปีที่แล้ว

      will surely add more videos like this. thanks for the comment.

  • @hooverzavala4560
    @hooverzavala4560 3 ปีที่แล้ว +1

    Thank you for this vid, it deserves more views, keep it up!

    • @ASoftwareEngineer
      @ASoftwareEngineer  3 ปีที่แล้ว

      thank you for the kind words!
      extra views would be nice 👌😉
      is there anything you think i should improve on and what are the good parts you saw on the video?
      cheers 🍻🍺

  • @ameerhamza-pw1vq
    @ameerhamza-pw1vq 2 ปีที่แล้ว +1

    very helpfull content on this channel for js developer thanks a lot man

    • @ASoftwareEngineer
      @ASoftwareEngineer  2 ปีที่แล้ว +2

      been adding css videos lately. do you think it is useful?

    • @ameerhamza-pw1vq
      @ameerhamza-pw1vq 2 ปีที่แล้ว +1

      @@ASoftwareEngineer yes its usefull and your js series is osm can you make about big tech companies interview process if you are working on any Faang or any uber ,stripe,coca cola etc

  • @jorgetejeda99
    @jorgetejeda99 2 ปีที่แล้ว +1

    We can refactor a little bit more the "Balacend Parenthesis exercise"
    function isBalanced(arr){
    return arr.split("").length % 2 == 0 ? true : false
    }

    • @ASoftwareEngineer
      @ASoftwareEngineer  2 ปีที่แล้ว

      yep, can do that as well. what i like about JS is that there are many solutions to a problem.
      thanks for the snippet Jorge.

    • @jorgetejeda99
      @jorgetejeda99 2 ปีที่แล้ว

      @@ASoftwareEngineer Exactly

    • @brunocapitelli7754
      @brunocapitelli7754 2 ปีที่แล้ว +1

      I'm not sure if I understood it well, but this will check wheter the string has a pair number of parenthesis but not exactly if all parenthesis opened within it are closed afterwards. For example: ") ) ( (" will return true, right?

    • @ASoftwareEngineer
      @ASoftwareEngineer  2 ปีที่แล้ว +1

      good point. when it doubt, ensure to test the code to verify :)
      codepen.io/angelo_jin/pen/OJgwaed

    • @Tauron211
      @Tauron211 2 ปีที่แล้ว

      I made a long and understandable function for balanced parenthesis in case if it starts with ")"
      function isBalanced(str) {
      let stackL = []
      let stackR = []
      for(let char of str){
      if(char === '(' ) {
      stackL.push(char)
      } else if(char === ')' ){
      stackR.push(char)
      }
      }
      console.log( stackL, stackR)
      if(stackL.length> 0 && stackL.length === stackR.length){
      return true
      } else return false
      }

  • @TusharBorawake
    @TusharBorawake 3 ปีที่แล้ว

    Could you please also make video on object equality...? A function which accepts २ objects as input and check equality of keys and values. Recently this question is asked by interviewer to me.

    • @ASoftwareEngineer
      @ASoftwareEngineer  3 ปีที่แล้ว +2

      creating video will take a long time
      here are 3 potential solutions i created for you - codepen.io/angelo_jin/pen/abLKKaX
      added comments on the codepen
      Update: Here is the video you requested
      th-cam.com/video/2j8L8RsHQpM/w-d-xo.html

  • @mocococo2877
    @mocococo2877 2 ปีที่แล้ว

    My very first thought was - "A hungry fox!" has 4 vowels. Your match gives 3 because y is missing. Then after checking seems y is considered a vowel but only "sometimes". That is just funny.

    • @ASoftwareEngineer
      @ASoftwareEngineer  2 ปีที่แล้ว

      when is `y` considered a vowel. Anyway, if one consider this as a vowel, we should be able to adapt as a programmer easily

  • @ameerhamza-pw1vq
    @ameerhamza-pw1vq 2 ปีที่แล้ว +1

    Another simple way to remove duplicate from array
    function removeArray(arr){
    let uniqueArray=[]
    for (let num of arr){
    if(!uniqueArray.includes(num)){
    uniqueArray.push(num)
    }
    }
    return uniqueArray
    }
    let resp=removeArray(['a','a','a','b',1,1,1,22,3,22]);
    console.log(resp,"check");

    • @ASoftwareEngineer
      @ASoftwareEngineer  2 ปีที่แล้ว +1

      yes. that looks like another winner to me! 🤙🏻