JavaScript Interview Questions | Top 3 Common Problems Solved

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 56

  • @mdjuwelrana-f2w
    @mdjuwelrana-f2w 11 місяців тому

    thanks vaia

  • @redwanislam5754
    @redwanislam5754 Рік тому +4

    ভাই প্লেলিস্ট টা কনটিনিউ করার অনুরোধ রইলো❤

  • @rohan_sorkar
    @rohan_sorkar Рік тому +1

    আপনার বোঝানোর ধরনটা খবই সুন্দর। ভিডিওটা অসাধারণ ছিল ধন্যবাদ ❤

  • @kazolhedaetul67
    @kazolhedaetul67 Рік тому

    Next dada❤❤

  • @const_x
    @const_x Рік тому +1

    DSA niye course dile valo hoito..banglay valo kono tutorial paini

  • @sk.shohag2659
    @sk.shohag2659 10 місяців тому +1

    third problem solution before watching
    const words = 'javascript is a programming language';
    function sortWords(words){
    return words.split(' ').sort((a,b) => a.length - b.length).join(' ')
    }
    console.log(sortWords(words));

  • @__Gojo___
    @__Gojo___ Рік тому

    Problem solving ar bikolpo nie...❤❤

  • @LearnWithNoor036
    @LearnWithNoor036 11 місяців тому

    const str = "java is a programming language";
    function sortWord(data) {
    dataAsarray = data.split(" ");
    dataAsarray.sort();
    return dataAsarray.join(" ");
    }
    console.log(sortWord(str));
    OUTPUT: "a is java language programming"
    No need of length checking between a,b

  • @Asahi_Sama
    @Asahi_Sama Рік тому

    Bhiya JavaScript course ta sesh howar por Project deben plz🧡

  • @deshideveloper93
    @deshideveloper93 Рік тому +1

    Playlists ta continue korar onurodh roilo Sumit Vai

  • @imranhossain3511
    @imranhossain3511 Рік тому

    ❤❤❤

  • @sk.shohag2659
    @sk.shohag2659 10 місяців тому +2

    vaiya this is my solution before watching yours
    const numberArr = [1,1,1,0,2,0,3,4,5,6,3,3,2,4];
    function countsDuplicates(arr){
    const counts = {};
    for(let i = 0; i < arr.length; i++){
    if(counts[arr[i]]){
    counts[arr[i]] = counts[arr[i]] + 1;
    }else{
    counts[arr[i]] = 0 + 1;
    }
    }
    return counts;
    }
    const result = countsDuplicates(numberArr)

  • @farijultanjil5326
    @farijultanjil5326 Рік тому +1

    It's a request, please continue giving videos on problem solving...
    We believe problem solving can help us to become a good developer.

  • @kazolhedaetul67
    @kazolhedaetul67 Рік тому

    ❤❤❤❤❤ dada❤❤❤

  • @mdhaiderhossain
    @mdhaiderhossain Рік тому

    Thank you brother for sharing a valuable thing that is very important for us.

  • @OjitDebNath
    @OjitDebNath Рік тому

    Awesome ❤ problem solution

  • @sujonpramanik1151
    @sujonpramanik1151 Рік тому

    অসাধারণ ছিলো দাদা। next JavaScript Interview Questions Problems Solved ভিডিও গুলো continue করলে আমাদের জন্য অনেক ভালো হতো , শুভো কামণা রইলো দাদা।

  • @niloykumar8503
    @niloykumar8503 Рік тому

    // Problem 1 - Duplicate elements...
    const fruits = [
    "apple",
    "orange",
    "mango",
    "apple",
    "pineapple",
    "orange",
    "apple",
    ];
    // logic...
    const duplicateCounter = (data) => {
    const result = {};
    data.forEach((word) => {
    result[word] == undefined
    ? (result[word] = 1)
    : (result[word] = result[word] + 1);
    });
    return result;
    };
    console.log(duplicateCounter(fruits));

  • @arifix
    @arifix Рік тому +2

    First problem using array reduce:
    const emojis = ['🍔', '👍', '🍔', '🍀', '🍔', '👍', '👏', '🤎', '🍀'];
    const res = emojis.reduce((acc, cur) => {
    if(!acc[cur]){
    acc[cur] = 0;
    }
    acc[cur]++;
    return acc;
    }, {});
    console.log(res);

  • @majedulislam4982
    @majedulislam4982 Рік тому

    Very helpful content. Continue please

  • @oppotanvir1179
    @oppotanvir1179 Рік тому

    Love you brother and god bless you!

  • @asrafulisalm511
    @asrafulisalm511 Рік тому +1

    Vaiya Big O notaion niya akta video dile khob upokreto hotam

  • @emdadulhoqueemon2934
    @emdadulhoqueemon2934 Рік тому

    Redux course ta kobe asbe?

  • @muhammadarifulislam8740
    @muhammadarifulislam8740 Рік тому

    Thanks a lot

  • @noyandey747
    @noyandey747 Рік тому

    Dada happy to inform you that i have solved the first problem in another way.
    const elements = [
    'hello',
    'bangladesh',
    'linkedin',
    'hello',
    'linkedin',
    'laptop',
    ];
    const listed = elements.reduce((prev, curr) => {
    prev[curr] = (prev[curr] || 0) + 1;
    return prev;
    }, {});
    console.log(listed);

  • @azazahmedlimon3700
    @azazahmedlimon3700 Рік тому +1

    let fruits = [1, 3, 1, 4, 6, 8, 8];
    let obj = fruits.reduce((totalValue, item) => {
    totalValue[item] ? totalValue[item]++ : (totalValue[item] = 1);
    return totalValue;
    }, {});
    console.log(obj);
    For first one

  • @AbdulJabbar-vf2dc
    @AbdulJabbar-vf2dc Рік тому

    Impressive❤❤❤

  • @mdrabiulakand8848
    @mdrabiulakand8848 Рік тому

    Please bhai continue the js job interview question playlist ❤ your content is best as always.

  • @sabbirshuvo918
    @sabbirshuvo918 Рік тому

    One line solution jodi karo lage
    const reverseWord = (str) => str.split("").reverse().join("").split(" ").reverse().join(" ");

  • @niazuddinabir1598
    @niazuddinabir1598 Рік тому +1

    Apnar Vs theme tar name ki bola jave vaiya?

    • @LearnwithSumit
      @LearnwithSumit  Рік тому

      Video description e lekha ache. Learn with Sumit theme - Official variant

  • @gojo55x
    @gojo55x Рік тому

    Love ✨🖤

  • @user-hm8xi1tu8s
    @user-hm8xi1tu8s Рік тому

    function sentenceSort(sentence) {
    const wordArr = sentence.split(" ");
    const wordsLength = wordArr.map((w) => (w = w.length));
    const sortedArr = [];
    const minLength = Math.min(...wordsLength);
    const maxLength = Math.max(...wordsLength);
    for (let i = minLength; i {
    if (element.length == i) {
    sortedArr.push(element);
    }
    });
    }
    return sortedArr.join(" ");
    }

  • @shakib_04
    @shakib_04 Рік тому

    dynamic r bepar ta jana chilo na, ami o vabtam multiple way te object er value access kora jai keno. ekhon bujlam.

  • @shaonsikdar8738
    @shaonsikdar8738 8 місяців тому

    ❤ 18 Dec, 2023

  • @IamFahim09
    @IamFahim09 Рік тому

    প্রথমটাতে (Duplicate Element") আমি ১০০% if else ব্যবহার করতাম অথচ আমার জানা লজিকেই এক লাইনের যে এটা সলভ করা যায় সেটা মনে হয় না মাথায় আসতো।

  • @arifalmasar
    @arifalmasar Рік тому

    🔥❤️

  • @RazelAhmed16
    @RazelAhmed16 Рік тому

  • @user-dc6ku2tm5x
    @user-dc6ku2tm5x Рік тому

    💖💖💖💖

  • @programdecode3983
    @programdecode3983 Рік тому

    🎉❤

  • @emonkantishil2309
    @emonkantishil2309 Рік тому

    For you many programmers coming to this sector will not be disappointed. Thank you so much sir. If we get such a course it would be better sir.❤❤❤❤❤❤

  • @ashutoshbiswas6059
    @ashutoshbiswas6059 Рік тому +1

    // 1st one in may be the shortest possible way(just for fun)
    ["🥭", "🥭", "🥭", "🍇", "🍎", "🍎"].reduce((a, e) => (a[e] = -~a[e], a), {});
    // {🥭: 3, 🍇: 1, 🍎: 2}
    // ⚠It is not recommended to write such code for any purpose other than recreation, as it is not readable and appears clever.

    • @LearnwithSumit
      @LearnwithSumit  Рік тому +2

      nice solution but writing in one line does not mean readable

    • @ashutoshbiswas6059
      @ashutoshbiswas6059 Рік тому

      ​@@LearnwithSumit Thank you dada. I totally agree with you.

    • @ashutoshbiswas6059
      @ashutoshbiswas6059 Рік тому

      ​@@LearnwithSumit I've updated my comment. I'm really sorry dada for the things I did wrong in the comment.

    • @LearnwithSumit
      @LearnwithSumit  Рік тому +1

      vaia sorry keno bolchen. apni to thik e likhechilen. eta just ami amar view bolechi. jehetu apni nije ei jinish ta bujhen tahole use korle to problem nai.

  • @riday3137
    @riday3137 Рік тому

    ❤❤❤

  • @mahbubalam1968
    @mahbubalam1968 Рік тому

    ❤️❤️❤️❤️❤️❤️❤️

  • @imdadulhaque9757
    @imdadulhaque9757 Рік тому

    ❤️❤️❤️