4.5 Years Experienced Best Javascript Interview | Chakde Frontend Interview EP - 01

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

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

  • @arpitham8104
    @arpitham8104 6 หลายเดือนก่อน +18

    Candidate is good with her skills…she is making some of the topics which are bit complicated into very simple thing..that’s shows the experience 👏

  • @jamyit4736
    @jamyit4736 3 หลายเดือนก่อน +13

    At 4:15 i m not satisfied by the answer by a 4.5 year of experience because the settimeout fetch promise and settimeinterval are not the Apis of core javascript whereas these functions are provided by browser by WebApis so when we provide callbacks to these functions it will go to the queue after waiting time and and it will not executed until the Callstack empty ...when call stack empty from Global execution context then these function run according to their preserve order

  • @yuvarajgeethavel7153
    @yuvarajgeethavel7153 6 หลายเดือนก่อน +13

    If you put the questions in the description section of the video, it will super helpful to practice along, Please consider it from next videos !! Btw great choice of questions!!

  • @jackfrost8969
    @jackfrost8969 5 หลายเดือนก่อน +4

    This was actually a challenging question for first timer.

  • @pradeepj2580
    @pradeepj2580 6 หลายเดือนก่อน +8

    memoizeOne function will not work here if we call memoizeOne with different callbacks
    Eg: if we call memoizeOne with add , and also we call memoizeOne with sub results will be inconsistent
    because cache map is global one it will be shared by both add and sub callback memoizeOne calls
    So we need create cache map for each memoizeOne call and return arrow function from memoizeOne

  • @nikhilm103
    @nikhilm103 6 หลายเดือนก่อน +2

    The problem is that similar questions are being asked since about 3-4 years now. I understand that they do a good job on checking the conceptual knowledge of the candidate and reinventing the wheel might not be possible every time but majority of the candidates I’ve seen just learn the solutions by heart and sometimes can’t even deal with a follow up question. People should understand that this is not an exam where you would just empty your pockets when you see a question you’ve already solved or practiced and call it easy. Ofc the interviewer will be more experienced and can read between the lines. We can always try to focus on the concepts as opposed to just going through interview questions.

  • @sameerfaridi2
    @sameerfaridi2 6 หลายเดือนก่อน +4

    This video has a lot of great information, but as a beginner, I didn't fully understand some parts like the callback in the initial question, memoization, and other detailed concepts. I plan to watch it again after more practice, and I'm sure I'll understand everything better then. Thank you, Chirag Goel Sir.

    • @adarshtiwari7395
      @adarshtiwari7395 4 หลายเดือนก่อน +1

      While preparing for interviews, watch Namaste JS playlist on youtube and then come back to this video. You will understand properly

  • @midbencher_habits
    @midbencher_habits 6 หลายเดือนก่อน +1

    2021 me aapke git videos but were unable to understand but now again I am here after almost 3 years to watch machine coding round questions. Thanks for such awesome content

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน +1

      It's my pleasure. That I can bring you back ❤️

    • @thatoneguy908
      @thatoneguy908 6 หลายเดือนก่อน

      Above video is of Machine coding interview format? In machine code don’t wee have to develop a small functionality?

  • @vikasvarma9462
    @vikasvarma9462 2 หลายเดือนก่อน

    for the common question section flatten array i have a solution
    function flattenArray(arr){
    return arr.toString().split(",").map(Number)
    }

  • @vishalpanchal2343
    @vishalpanchal2343 6 หลายเดือนก่อน +11

    Overall that's a good interview.
    Optimized solutions are-
    Q 2. We can use closures here as mentioned by him will looks like -
    function memorizeOne(fn){
    const cache = {};
    return function (...args){
    const key = JSON.stringify(args); // Creating unique keys because objects are reference type
    if (key in cache) {
    console.log("Using memoized result");
    return cache[key];
    } else {
    console.log("Calculating result");
    const result = fn(...args);
    cache[key] = result;
    return result;
    }
    }
    }
    const add = (a, b) => a + b;
    const memorize = memorizeOne(add);
    console.log(memorize(1, 2)); // Calculates result: 3
    console.log(memorize(1, 2)); // Uses memoized result: 3
    console.log(memorize(2, 3)); // Calculates result: 5
    console.log(memorize(1, 2)); // Uses memoized result: 3
    Q 3. Her solution was also good but here I used reduce method
    const obj = [
    { key: 'Sample 1', data: 'Data1' },
    { key: 'Sample 1', data: 'Data1' },
    { key: 'Sample 2', data: 'Data2' },
    { key: 'Sample 1', data: 'Data1' },
    { key: 'Sample 3', data: 'Data1' },
    { key: 'Sample 4' }
    ];
    function groupBy(arr) {
    return arr.reduce((value, item) => {
    const { key, data } = item;
    if (!value[key]) {
    value[key] = [];
    }
    value[key].push({ key, data });
    return value;
    }, {});
    }
    const output = groupBy(obj);
    console.log(output);
    Your explanation of questions are great Krupa. Will wait for next part of the series.

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      Thanks for sharing 🙏❣️

    • @KannadaLofi
      @KannadaLofi 6 หลายเดือนก่อน

      const add = (a: number, b: number) => a + b;
      const CACHE: Record = {};
      function memoizedAdd(n: number, m: number) {
      const argArray = Array.from(arguments);
      const key = JSON.stringify(argArray);
      console.log(CACHE);
      if (key in CACHE) {
      console.log('Accessing CACHE');
      return CACHE[key];
      } else {
      console.log('Computing');
      const result = add(n, m);
      CACHE[key] = result;
      return result;
      }
      }
      console.log(memoizedAdd(1, 2));
      console.log(memoizedAdd(1, 2));
      Sorry I have a doubt, this is my solution. Why would we need another temp function inside the memo function ?? Could you explain if possible please

    • @vishalpanchal2343
      @vishalpanchal2343 6 หลายเดือนก่อน

      @@KannadaLofi As I understand your question, you are talking about the function which passed as an argument.
      It is because we want to make memorize function generic which can memorize any function output.
      In your code "console.log(memoizedAdd(1, 2));" you are calling it for to memorize add with two arguments, but if we have more arguments ?
      So need to make it generic.

    • @tangudusrinivasu8855
      @tangudusrinivasu8855 2 หลายเดือนก่อน

      Inside the if loop, value[key] = [ ] should not be empty, it should be value[key] = [item] or value[key] = [{key, data}];

  • @onecuriousmuggle
    @onecuriousmuggle 6 หลายเดือนก่อน +6

    Great video! Looking forward to more episodes from chakde interviews!

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน +3

      More video are in pipeline. Turn on the notification on channel for every Saturday 10AM

  • @manikantaprasadlopinti8375
    @manikantaprasadlopinti8375 6 หลายเดือนก่อน +2

    18:35 we need to create a closure (that holds the cache nothing but arguments and result) and return it ... then it will work independent of function that we are passing. until the functions are pure

    • @pushpendersingh7444
      @pushpendersingh7444 6 หลายเดือนก่อน

      I was thinking the same, right now cache is at global level all memoised functions will access the same cache. Each memoised function must have it's own cache.

  • @venkiketavath4400
    @venkiketavath4400 4 หลายเดือนก่อน

    const result = numbers.flat(Infinity); // flatten all the nested array values into a single array of value

  • @rahulkrishdev
    @rahulkrishdev 4 หลายเดือนก่อน +1

    I am very happy that for these problem statement I paused the video I tried by myself I can able to solve that and solved those without any hint. I am confident now that i will crack my interview in the future 😊

    • @igurutechs2583
      @igurutechs2583 4 หลายเดือนก่อน

      Yes me too! But i've a doubt that whether we could use a.flat(Infinity) to flatten the array or we should always make the polyfill function for it in the interviews?

    • @rahulkrishdev
      @rahulkrishdev 4 หลายเดือนก่อน

      @@igurutechs2583 From my experience it is better to use polyfill function in an interview. Since most of my interview the interviewer asked me to write a function instead of a method. some Interviewer was ok with methods. It depends upon the interviewer i think.

    • @anujtanwar2937
      @anujtanwar2937 4 หลายเดือนก่อน +1

      The interviewer will himself ask you to make the pollyfill of flat function as array.flat() is pretty straight forward answer
      Incase you are fresher he might not.

  • @artofcoding2010
    @artofcoding2010 6 หลายเดือนก่อน +3

    Wow this is a fantastic addition. Thanks Chirag sir for this series and all the best for season - 2
    🔥🔥🔥

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      More to come soon 🚀

    • @RajneeshYadav-yl2th
      @RajneeshYadav-yl2th 6 หลายเดือนก่อน

      @@engineerchirag Thanks you sir❤. we love this series.

  • @amansingh-lj3tg
    @amansingh-lj3tg 6 หลายเดือนก่อน +10

    memoize problem was very good. learnt a new thing. very nice video.

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      Glad it was helpful! ❣️

    • @satishj801
      @satishj801 4 หลายเดือนก่อน

      leetcode.com/problems/memoize/?envType=study-plan-v2&envId=30-days-of-javascript

  • @mirage4731
    @mirage4731 4 หลายเดือนก่อน

    function memoize(fn){
    const argsLength = fn.length
    const cache = new Map();
    return function(...args){
    const key = args.join("")
    if(cache.get(key)){
    return cache.get(key)
    }
    const result = fn(...args)
    cache.set(key, result);
    return result;
    }
    }
    memorize function I made, I initially made it with object but then moved to map

  • @UttamKumar-gi7mc
    @UttamKumar-gi7mc 6 หลายเดือนก่อน +2

    Thank you sir for this a great series. One of the most awaited series.

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน +1

      We have just started. This release will be one stop solution for frontend interviews

  • @sanyamjain7058
    @sanyamjain7058 6 หลายเดือนก่อน +2

    I think this is fine from my side! Anyone can improve this?
    function memoised(fn){
    const cache=new Map();
    return (...args)=>{
    const key=args.join('-');
    if(cache.has(key)) return cache.get(key);
    const ans=fn(...args);
    cache.set(key,ans);
    return ans;
    }
    }

    • @MessiLeo2312
      @MessiLeo2312 6 หลายเดือนก่อน

      good apporch

  • @lfc5times130
    @lfc5times130 5 หลายเดือนก่อน +1

    Superb question and answers. Thank you chirag.

  • @jacquelynecarmen
    @jacquelynecarmen 6 หลายเดือนก่อน +5

    18:35
    I think we should concept of decorator function
    A decorator allow to add new functionality to an existing fun without modifying its structure and return modified fun

    • @Shyam_Mahanta
      @Shyam_Mahanta 5 หลายเดือนก่อน +1

      Decorator doesn't exist in javascript

    • @jacquelynecarmen
      @jacquelynecarmen 5 หลายเดือนก่อน

      @@Shyam_Mahanta are you sure?

    • @Shyam_Mahanta
      @Shyam_Mahanta 5 หลายเดือนก่อน

      @@jacquelynecarmen typescript has full support for decorator but in js its just arghhhhhh.....

  • @shivamranjan4035
    @shivamranjan4035 3 หลายเดือนก่อน

    great video, learned concept of caching :)

  • @nayansinghal23
    @nayansinghal23 6 หลายเดือนก่อน

    CODE FOR QUESTION 2 :-
    const obj = [
    { key: 'Sample 1', data: 'Data1' },
    { key: 'Sample 1', data: 'Data1' },
    { key: 'Sample 2', data: 'Data2' },
    { key: 'Sample 1', data: 'Data1' },
    { key: 'Sample 3', data: 'Data1' },
    { key: 'Sample 4', data: 'Data1' },
    ]
    const normalize = (obj) => {
    let output = {}
    obj.forEach(({ key, data }) => {
    if(!output.hasOwnProperty(key)) {
    output[key] = [];
    }
    output[key] = [ ...output[key], { key, data } ]
    })
    return output;
    }
    console.log(normalize(obj))

    • @payelbhowmik9060
      @payelbhowmik9060 6 หลายเดือนก่อน +1

      What was the question? I couldn't understand it properly.

    • @nayansinghal23
      @nayansinghal23 6 หลายเดือนก่อน +1

      @@payelbhowmik9060 The question states that you have to rearrange (or normalize) the data in such a way that the output is an object. This is generally done to reduce the Time Complexity from array O(N) to object O(1) because to access an element in an array we have to traverse it completely but to access it in an object we can use dot notation or even square brackets. Good Luck🤞

  • @nayansinghal23
    @nayansinghal23 6 หลายเดือนก่อน

    CODE FOR QUESTION 3 :-
    const add = (a, b) => a + b
    const memoizeOne = (add) => {
    const map = new Map();
    return (a, b) => {
    const obj = {
    args: [a, b]
    }
    if(map.has(JSON.stringify(obj))) {
    console.log('Add function is not executed: previous result is returned -> ', map.get(JSON.stringify(obj)));
    }
    else {
    const output = add(a, b);
    map.set(JSON.stringify(obj), output);
    console.log('Add function is called to get new value -> ', output);
    }
    }
    }
    const memoizeAdd = memoizeOne(add);
    memoizeAdd(1, 2);
    memoizeAdd(1, 2);
    memoizeAdd(2, 3);
    memoizeAdd(2, 3);

  • @vamshikrishna6001
    @vamshikrishna6001 6 หลายเดือนก่อน

    Want more interview videos with different types of questions for experienced Frontend developer, thanks a lot for sharing this knowledge.

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      More to come! Stay tuned 🙂

    • @vamshikrishna6001
      @vamshikrishna6001 6 หลายเดือนก่อน

      If possible share videos of debugging the issue in front-end development in detail.

  • @PratikChavan-rg6xj
    @PratikChavan-rg6xj 4 หลายเดือนก่อน +5

    Great video Chirag sir! The memoized question was great, learned a lot ❤

  • @syncmaster320
    @syncmaster320 6 หลายเดือนก่อน +1

    Her explanation is great although the implementations are okay at best. First problem could be solved used Object.groupBy (I guess he was expecting that), the memorization problem took way too long and then the recursion problem doesn't need an array initialized out side the function. The overall interview also seemed easy for anyone with 2.5-3+ yoe.

    • @krupapanchal9908
      @krupapanchal9908 6 หลายเดือนก่อน

      Hi, thank you for the feedback.
      The points you gave are genuine and valid and I personally feel the same that solution could have been provided/presented in a better manner.

    • @syncmaster320
      @syncmaster320 6 หลายเดือนก่อน +1

      @@krupapanchal9908 Hey! Didn't expect you to reply. Again, your communication is amazing and that alone will take you places. Hope I didn't come off too strong with my comment. All the best!

  • @shafiullahsyed4255
    @shafiullahsyed4255 6 หลายเดือนก่อน +1

    Kindly put the interview stuff in the description you doing great job ❤

  • @rishabhpanesar9621
    @rishabhpanesar9621 6 หลายเดือนก่อน +2

    I think we could use currying concept for the memoisation problem.

  • @nayansinghal23
    @nayansinghal23 6 หลายเดือนก่อน +2

    CODE FOR QUESTION 4 :-
    const a = [1, 2, 3, [4, [5, 6]], 7, 8];
    const func = (arr, output) => {
    arr.forEach((item) => {
    if(typeof(item) === 'number') {
    output.push(item);
    }
    else {
    func(item, output);
    }
    })
    }
    const flattenArray = (arr) => {
    const output = [];
    func(arr, output);
    return output;
    }
    console.log(flattenArray(a));

  • @thepassionatecoder5404
    @thepassionatecoder5404 3 หลายเดือนก่อน

    She is decent JavaScript developer :)

  • @satyendrakannaujiya187
    @satyendrakannaujiya187 6 หลายเดือนก่อน +1

    very informative video...waiting for more

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      More to come! Stay tuned 🚀

  • @devendrakanojiya
    @devendrakanojiya หลายเดือนก่อน +1

    beauty with brain

  • @snehalrahangdale8700
    @snehalrahangdale8700 6 หลายเดือนก่อน

    function memoize(fn) {
    let memo = new Map();
    return function() {
    const context = this;
    const args = arguments;
    if (memo.has(args.toString())) {
    console.log("return from memoize");
    return memo.get(args.toString())
    }
    let result = fn.apply(context, args)
    console.log(result);
    memo.set(args.toString(), result);
    return result
    }
    }

  • @pawanchoudhari5130
    @pawanchoudhari5130 6 หลายเดือนก่อน +1

    Sorry to point out , but first Output based code won't run , there should be one closing ')' after console.log(x). Other than that her explanation was great 👍🏻

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      Thanks for highlighting, but syntax wasn't the main consideration in this interview

  • @riderzzone6373
    @riderzzone6373 4 หลายเดือนก่อน

    she is too good 🤩😍😍

  • @dilshadazam880
    @dilshadazam880 5 หลายเดือนก่อน

    Come Satuarday. I leave everything to watch Chirag's video at 10AM.

  • @jahidulhasan8558
    @jahidulhasan8558 6 หลายเดือนก่อน +1

    i hope this EP - 01 will be increase.
    thanks from bangladesh

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน +1

      Block your calendar for 10AM every Saturday 🙂

  • @surajseth1575
    @surajseth1575 6 หลายเดือนก่อน +2

    Bro, title to shi rkh lete..she said she has 2 years of experience and you mentioned 4.5 years in video title...phle 1 min me hi video ki authenticity smjh aa gyi

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      She has 2 years experience as a frontend developer. She was a software engineer from 2019.
      I'm here to provide authentic content 💯

  • @prateekaggarwal5970
    @prateekaggarwal5970 6 หลายเดือนก่อน

    Great Video, Please schedule more mock interview for Senior developers also.

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน +1

      Stay tuned for 10 Am every Saturday 🙂

  • @DONGNebab
    @DONGNebab 5 หลายเดือนก่อน

    damn shes so good. . ithink the hardest is the 2nd to the last problem, icant even know ,how to memoize a the result. haha

  • @sumitkumardey3268
    @sumitkumardey3268 6 หลายเดือนก่อน +4

    Great Questions!!! @chirag.

  • @rahultej8352
    @rahultej8352 6 หลายเดือนก่อน +1

    Kudos to the interviewee

  • @Luke-1o1
    @Luke-1o1 6 หลายเดือนก่อน

    please make sure you be consistent & complete it 🙏

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน +1

      Every Saturday 10AM 🙂 Block your calendar 😜

  • @mohammadusman9701
    @mohammadusman9701 5 หลายเดือนก่อน +1

    Can someone or the author please post a full solution of that memoize(add) function question? Thanks !

  • @pez5491
    @pez5491 6 หลายเดือนก่อน

    Great interview, though in my country (Poland) such questions are asked in junior level interviews

    • @engineerchirag
      @engineerchirag  5 หลายเดือนก่อน +3

      Thanks for the info. Would you mind sharing the kind of questions which are asked in Poland?

  • @marcspect
    @marcspect 26 วันที่ผ่านมา

    My solution for the memorize function problem with diff functions like add & sub.
    const cacheObj = {};
    const memo = function(fn) {
    return function(...args) {
    if (cacheObj[fn.name]) {
    const value = cacheObj[fn.name][String(args)]
    if (value) return value;
    const result = fn(...arguments);
    cacheObj[fn.name][String(args)] = result;
    return result;
    } else {
    const result = fn(...arguments);
    cacheObj[fn.name] = { [String(args)] : result }
    return result;
    }
    }
    }
    const add = (a, b, c) => a + b + c;
    const sub = (a, b) => a - b;
    const memoAdd = memo(add);
    const memoSub = memo(sub);
    const result = memoAdd(1,2,3);
    const result2 = memoAdd(1,2,4);
    const result3 = memoAdd(2,1,3);
    const result4 = memoSub(4,3);
    const result5 = memoSub(6,7);
    const result6 = memoSub(4,3);
    console.log("🚀 ~ result:", result, result2, result3, result4, result5, result6)
    console.log("🚀 ~ cacheObj:", cacheObj)

  • @madhanrock5390
    @madhanrock5390 6 หลายเดือนก่อน

    Good interview, Loved it ❤

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      Glad you enjoyed it! Stay tuned for more upcoming video 🚀

  • @Vamsiri
    @Vamsiri 6 หลายเดือนก่อน

    Great insights!

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      Glad you enjoyed it!

  • @mahamayamallya7701
    @mahamayamallya7701 2 หลายเดือนก่อน

    let obj = [
    {
    sample: 'sample1',
    data:'data1'
    },
    {
    sample: 'sample1',
    data:'data1'
    },
    {
    sample: 'sample2',
    data:'data2'
    },
    {
    sample: 'sample3',
    data:'data3'
    },
    {
    sample: 'sample4',
    data:'data4'
    }
    ];
    SOLUTION :
    let output = obj.reduce((acc, curr) =>{
    acc[curr.sample] = acc[curr.sample] || [];
    acc[curr.sample].push(curr);
    return acc;
    }, {})
    console.log(output)

  • @phoenixgaming3045
    @phoenixgaming3045 6 หลายเดือนก่อน

    i am a 1 yrs experienced guy but feels like having 6 or 7 years of experience 😢. There was a time where there is less competition for skills for software jobs, now people are having enough skills but very hard to get a job 😕

    • @virajtandel24
      @virajtandel24 6 หลายเดือนก่อน

      Not understood brother what you are trying to say can you elaborate more plzz.

    • @phoenixgaming3045
      @phoenixgaming3045 6 หลายเดือนก่อน

      @@virajtandel24 the demand for skills and the level of difficulty in interviews are increased so much recently. That is what i said.

  • @codeblood87
    @codeblood87 4 หลายเดือนก่อน

    Krupa panchal, very very talented coder..

  • @jackfrost8969
    @jackfrost8969 5 หลายเดือนก่อน +1

    23:11 did you just cut off the video and told her the solution?
    35:02 here too

  • @CarlTaylor-d1y
    @CarlTaylor-d1y 4 หลายเดือนก่อน

    Add(1,2) return 3 from cache but as per her logic if we pass Add(2,1) it will not come from cache but it also should come from cache ?
    So args sort is much important to set a key

    • @anujtanwar2937
      @anujtanwar2937 4 หลายเดือนก่อน

      It will only work in case of add and not in case of sub or /,% so sorting the args just for add func doesn't make sense

  • @JgNt3981
    @JgNt3981 6 หลายเดือนก่อน

    Hello Sir,
    1. How do you stay active and energetic always? 🤔
    2. Can we use internet in machine coding rounds if we dont remember the syntax? Thank you,

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      My energy is from love and support ❣️.
      Yes, we can ask the interviewer to allow you to check syntax on the internet.

  • @BulbDrama
    @BulbDrama 6 หลายเดือนก่อน +2

    Loved it

  • @iganic7574
    @iganic7574 6 หลายเดือนก่อน

    she have 4.5 years of experience and you ask him this basic questions.🙄

  • @abutaher_muhammad
    @abutaher_muhammad 6 หลายเดือนก่อน

    Thank you, Chirag Goel. Amazing video. I also tried to solve this problems by myself.

  • @amandubey4412
    @amandubey4412 6 หลายเดือนก่อน

    🎉 Excited for Season 2 of Chakde Interviews! Mock interviews sound like a fantastic addition. As I'm working through Namaste Frontend System Design, I've learned so much from you, Chirag. Thanks a lot for the invaluable insights! 👏

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน +1

      Wonderful! Keep watching, keep sharing, keep growing 🚀

    • @amandubey4412
      @amandubey4412 6 หลายเดือนก่อน

      @@engineerchirag 😁😇

  • @akkiawasthi8864
    @akkiawasthi8864 6 หลายเดือนก่อน

    Thank you Chirag bhai pls do some videos on machine coding as well

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      Yes, it's coming soon. Stay tuned!

  • @amansingh-lj3tg
    @amansingh-lj3tg 6 หลายเดือนก่อน +1

    Hi Chirag, I'd love to give mock interview with you if you are taking candidates for subsequent videos. Let me know. Thanks

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน +1

      Please share your linkedin profile here.

  • @shashankdubey4754
    @shashankdubey4754 6 หลายเดือนก่อน

    Flatten array was asked to me in interview with ServiceNow ❤

  • @sachin-chaurasiya
    @sachin-chaurasiya 6 หลายเดือนก่อน

    Great, thanks for making this video. Curious which platform you used for assessment?

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      Thanks for feedback. DM me on LinkedIn for details 😊

  • @ezcoding69
    @ezcoding69 6 หลายเดือนก่อน

    the memoize one is the challenging one and she tackled it very well......btw how i can give interview to you ?

  • @wickkjohn
    @wickkjohn 6 หลายเดือนก่อน

    Maja aagya sir 🎉

  • @maheshpanchakshare5868
    @maheshpanchakshare5868 6 หลายเดือนก่อน

    awesome sir...

  • @pratik5115
    @pratik5115 6 หลายเดือนก่อน

    ❤❤❤ Great 👍👍👍👍

  • @amitkumar-lo9fr
    @amitkumar-lo9fr 5 หลายเดือนก่อน

    First question in which foreach use have compile error. forEach() is not closed

  • @yusufansari7618
    @yusufansari7618 6 หลายเดือนก่อน

    Easy peasy 🔥🔥

  • @prashantmestry699
    @prashantmestry699 6 หลายเดือนก่อน

    a lot to take away by watching this video.

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      Glad you liked it. More to come, stay tuned 🙂

  • @DeepikaYadav-i4g
    @DeepikaYadav-i4g 12 วันที่ผ่านมา

    Sir could you give all these question in a pdf file or somewhere so that anyone can practice these

  • @rahultej8352
    @rahultej8352 6 หลายเดือนก่อน

    Her sister is a Indian cricketer Jemimah rodrigues

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      😛 I just released. Who knows she is only giving interview

  • @Mr.Zeus11
    @Mr.Zeus11 6 หลายเดือนก่อน

    Great video!!, Thank you. and small update in memoization, if combination of arguments changed that has to be handled. ✌
    // Memoization
    const hashMap = new Map();
    function memoizeAdd (fun) {
    return function (...arg) {
    const key = arg.join('_')
    const reverseKey = arg.reverse().join('_')
    let result = ''
    if (hashMap.has(key) || hashMap.has(reverseKey)) {
    console.log('from memo')
    result = hashMap.get(key) || hashMap.get(reverseKey);
    }
    else result = fun(...arg);
    hashMap.set(key, result)
    return result;
    }
    }
    let addTwoValues = (a, b) => a + b;
    const addNumber = new memoizeAdd(addTwoValues);
    console.log(addNumber(2,3));
    console.log(addNumber(2,3));
    console.log(addNumber(3,2));

  • @rohitsharma7553
    @rohitsharma7553 5 หลายเดือนก่อน

    let obj = [
    {
    key:"sample 1",
    value:"d1"
    },
    {
    key:"sample 2",
    value:"d1"
    },
    {
    key:"sample 1",
    value:"d1"
    }, {
    key:"sample 3",
    value:"d1"
    },
    {
    key:"sample 4",
    value:"d1"
    },
    ]
    let output = {}
    obj.forEach((item,idx)=>{
    if(output[`${item.key}`]){
    output[`${item.key}`].push(item)
    }else{
    output[`${item.key}`] = [item]
    }
    })

    console.log(output)

  • @rizwansaifi3590
    @rizwansaifi3590 4 หลายเดือนก่อน

    in the 2nd question the output should be empty array for ' sample 2 ' , ' sample 3' , ' sample 4 ' but the interviewer just said okay that works xD

    • @engineerchirag
      @engineerchirag  4 หลายเดือนก่อน

      Can you please help with your solution?

    • @rizwansaifi3590
      @rizwansaifi3590 4 หลายเดือนก่อน

      sure here is the jsfiddle for the same :
      jsfiddle.net/bhallal_dev_/1j2oLzfm/35/

  • @SamratChougale-q1x
    @SamratChougale-q1x 6 หลายเดือนก่อน

    flattened array simple solution :
    const a = [1,2,3,[4,[5,6]],7,8];
    const newArr= a.flat(2);
    console.log(newArr);

  • @paragggoyal1552
    @paragggoyal1552 4 หลายเดือนก่อน

    map should be created inside the parent function and not globally

  • @JgNt3981
    @JgNt3981 6 หลายเดือนก่อน

    Clement mihailescu came in my mind while watching this video. 😅

  • @mohithguptakorangi1766
    @mohithguptakorangi1766 6 หลายเดือนก่อน

    Please dont get my hopes up...please tell me these are not the questions asked in a real 4+ exp interview
    I feel these are too easy, maybe for around 1-2 yrs exp?

    • @virajtandel24
      @virajtandel24 6 หลายเดือนก่อน +1

      Can you tell me some concepts which are asked in 4+ according to you brother??

    • @mohithguptakorangi1766
      @mohithguptakorangi1766 6 หลายเดือนก่อน

      ​@@virajtandel24 After talking to my seniors, I feel it is more focused on design approach questions after 4-5+ yrs experience. Maybe the memoized question was okay to be put in as a starter...but the rest are way too basic.
      But it always depends on the company and the interviewer.
      what I'm sure is that interview would not be this easy

    • @virajtandel24
      @virajtandel24 6 หลายเดือนก่อน

      Thanks brother I will prepare acoordingly now

  • @vibhanshusharma9143
    @vibhanshusharma9143 4 หลายเดือนก่อน

    there is syntax error in Q1 ) is mising

  • @rikki7663
    @rikki7663 6 หลายเดือนก่อน

    all things are great but how to prepare for these kind of question when I google I mostly see theoretical question only

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      On Chakde Frontend Interview series every Saturday 😛

  • @zunnurainzahoor
    @zunnurainzahoor 4 หลายเดือนก่อน

    answer of memoize function function MemoizeOne(fn) {
    let cache = null;
    let lastArgs = null;
    return function(...args) {
    if (cache !== null && lastArgs !== null && args.length === lastArgs.length &&
    args.every((arg, index) => arg === lastArgs[index])) {
    return cache;
    }
    lastArgs = args;
    cache = fn(...args);
    return cache;
    };
    }
    const add = (a, b) => a + b;
    const memoizedAdd = MemoizeOne(add);
    console.log(memoizedAdd(1, 2)); // 3
    console.log(memoizedAdd(1, 2)); // 3 (cached result)
    console.log(memoizedAdd(2, 3)); // 5

  • @balajithorbole5351
    @balajithorbole5351 6 หลายเดือนก่อน

    where are curly braces in foreach question

  • @akashharad4203
    @akashharad4203 6 หลายเดือนก่อน

    thank you

  • @karthiksundaram544
    @karthiksundaram544 6 หลายเดือนก่อน

  • @kshitijtidke6858
    @kshitijtidke6858 หลายเดือนก่อน

    Hamara bhi yesa interview lo 5 6 ctc to mg rahe hai bas

  • @hritikchaudhary5470
    @hritikchaudhary5470 6 หลายเดือนก่อน +29

    is she really 4.5 year experience, looks like fresher.🧐

    • @explorewithsatish1208
      @explorewithsatish1208 6 หลายเดือนก่อน +8

      Don’t judge a book 📕 by its cover 😮

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน +3

      Why so?

    • @JyotiGhali-g3z
      @JyotiGhali-g3z 6 หลายเดือนก่อน +3

      I feel looking like 8 years experience

    • @lalithrockz
      @lalithrockz 6 หลายเดือนก่อน +2

      Looking young im guessing​@@engineerchirag

    • @phoenixgaming3045
      @phoenixgaming3045 6 หลายเดือนก่อน +3

      I feel like 10 yrs experienced guy now

  • @pratik5115
    @pratik5115 6 หลายเดือนก่อน

    Will this type of questions asked to freshers ???

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      Freshers related videos are coming soon!

    • @mohithguptakorangi1766
      @mohithguptakorangi1766 6 หลายเดือนก่อน

      except memoization (maybe for a 1+ yrs experienced canditate), the other questions were pretty basic.

  • @Vibha_jain_adv
    @Vibha_jain_adv 6 หลายเดือนก่อน

    Can you asked how to browser render html code?

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน +1

      Sure, in one of the upcoming interviews I will ask 🙂

  • @shaileshsony2
    @shaileshsony2 5 หลายเดือนก่อน

    Sir I am searching for a Frontend Developer job please help me sir if you have any vacancy
    Thanks

  • @socialmedia5173
    @socialmedia5173 6 หลายเดือนก่อน

    4.5 exp , memorised Question takes hardly 3-4mins

    • @krupapanchal9908
      @krupapanchal9908 6 หลายเดือนก่อน +3

      Hi, your point is valid. However, as I was fairly new to this type of interview setup, it took time for me to get comfortable and perform at my best level.
      The interview is more about how you approach a problem and navigate towards the solution after hints are provided. In how much time you complete the problem is a secondary point of consideration.

    • @vijayr.b.1050
      @vijayr.b.1050 6 หลายเดือนก่อน +2

      Buddy It has nothing to do with experience, someone might not came across this usecase, it depends on what industry or problem candidate worked on solving early.

    • @phoenixgaming3045
      @phoenixgaming3045 6 หลายเดือนก่อน

      Knowing something now a days are very easy and if she doesn't come across that situation just google, thats all it takes 😅. he already instructed her to take help from google to know how to get arguments of a function

    • @krupapanchal9908
      @krupapanchal9908 6 หลายเดือนก่อน +1

      @@phoenixgaming3045 Thank you for the suggestion. Added "Google" to my "Need to learn" list.

  • @DevGuru-s9k
    @DevGuru-s9k 6 หลายเดือนก่อน

    sir please next video for freshers

  • @KartikKewalramani-q6v
    @KartikKewalramani-q6v 4 หลายเดือนก่อน

    i guess comedy ain't going well for kenny...

    • @engineerchirag
      @engineerchirag  4 หลายเดือนก่อน

      Who is Kenny here 🤔

  • @vedanshbisht1309
    @vedanshbisht1309 6 หลายเดือนก่อน

    can object.entries not be used in the input output snippet?

  • @Vivek-gt4gm
    @Vivek-gt4gm 6 หลายเดือนก่อน

    I am also starting Frontend Interview Preparation, with an amazing group where we discuss important questions in Zoom meetings regularly. if anyone who is really seriously wants to join let me know.(MERN with JavaScript)

  • @gaganbaghel1377
    @gaganbaghel1377 6 หลายเดือนก่อน +1

    This is not at all a real scenario in an interview even freshers interview are not taken like this anymore please don't prepare according to this interview example this sort of interview are used to happen in 2016 to 2019 only even freshers code better than this nowadays so if you want a job and want to really crack a interview please don't refer this as good interview yet you can refer it as a easy mock interview

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน +1

      Would love to know what kind of questions are expected nowadays 😊

    • @gaganbaghel1377
      @gaganbaghel1377 6 หลายเดือนก่อน

      In my recent interview I was asked to design a tic tc toe with a dynamic board , and in my previous interview I was asked to design a polyfill for map, and one of the interview also asked to implement deag and drop functionality as he asked me to refer trello for for it 😊

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน

      Don't worry, all of such questions are already in pipeline. You will get the best and variety of questions in this series. Trust me this series is going to "The Best and One Stop" solution for all frontend interviews . Stay tuned 🚀

    • @engineerchirag
      @engineerchirag  6 หลายเดือนก่อน +1

      Btw check this out - tictactoe question - th-cam.com/video/rtKwy1k9lYY/w-d-xo.html

  • @lohitakshtrehan6379
    @lohitakshtrehan6379 6 หลายเดือนก่อน

    🤣🤣🤣

  • @Omprakash-fd2pc
    @Omprakash-fd2pc 4 หลายเดือนก่อน

    Meh, she's no better than college kids nowadays

  • @EpNews-5012
    @EpNews-5012 6 หลายเดือนก่อน

    In this code:
    console.log('A')
    setTimeout(() => {
    console.log('B')
    }, 1000)
    ['C','D'].forEach((x )=>
    console.log(x))
    console.log('E')
    // Output:
    1
    Showing Type Error when the code
    ['C','D'].forEach((x )=>
    console.log(x))
    executed due to semicolon not there end of setTimeOut().

  • @childrenWithGod-xn2rb
    @childrenWithGod-xn2rb 5 หลายเดือนก่อน

    console.log('A');
    setTimeout(()=> {
    console.log("B")
    },[])
    ['C','D'].forEach(element =>
    console.log(element);
    console.log("E") there is no bracket closing it will show error right

    • @tamzidmahmud6129
      @tamzidmahmud6129 5 หลายเดือนก่อน

      Indeed, the forEach function has no closing parentheses. She didn't noticed , and he ignored it.

    • @codeblood87
      @codeblood87 4 หลายเดือนก่อน

      Don't talk like kids