100 Days of JavaScript Coding Challenges || Day #1

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

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

  • @ThapaTechnical
    @ThapaTechnical  8 месяцев назад +33

    Guy's, if you love the series plz LIKE SHARE & SUBSCRIBE ❤
    Also, if you have any coding challenges plz comment, and I will try to make a video on it 😊

    • @faisalarshad9909
      @faisalarshad9909 8 месяцев назад +1

      Bro I hope its very usefull for us specially this 100 days chalLenge so can you make a PHP , PYTHON 100 DAYS CHALLENGES PLZ☺☺

    • @RishiRajxtrim
      @RishiRajxtrim 8 месяцев назад

      🙂👍

    • @faheem8026
      @faheem8026 8 месяцев назад +1

      From which platform you selected the questions? Please share the link ? @ThapaTechnical

    • @ParasProgramming123
      @ParasProgramming123 8 месяцев назад

      If there are multiple longest words return the first one encountered??

    • @FaizanAli-m1w5r
      @FaizanAli-m1w5r 8 месяцев назад

      production ma front end ka secret keys kha pa rakhtay ha

  • @9_falcon
    @9_falcon 8 месяцев назад +129

    Vote For REACT Course ❤❤❤❤

    • @mehedihasanshishir0
      @mehedihasanshishir0 8 месяцев назад +2

      React❤

    • @good114
      @good114 8 месяцев назад +1

    • @marketingvlogs5529
      @marketingvlogs5529 8 месяцев назад +1

      Yes bhaiya please ek react. Js ka course lounch ki kiya na

    • @arhamkhan9726
      @arhamkhan9726 8 месяцев назад

      @@marketingvlogs5529 already uploaded h playlist check kro

    • @ghgltggamer
      @ghgltggamer 7 месяцев назад +1

      Why do you even want to use React , Better is to develop yours like I have developed my own UI library MIST JS additionaly you can use Css with html and js for best gui

  • @arifhussain5276
    @arifhussain5276 8 месяцев назад +9

    waah bhai, ye to bahut acchi baat hai, abhi recently aapke javascript ka sare course complete kar liya abi logics v build ho gya,😊😊😊

  • @codewitharijit3260
    @codewitharijit3260 8 месяцев назад +18

    function givebigstr(str) {
    let val=0
    let string=""
    let arr=str.split(" ");
    arr.map((e)=>{
    if(e.length>val){
    string=e
    val=e.length
    }
    })
    return string
    }

    • @tsdonalds1668
      @tsdonalds1668 6 месяцев назад

      Bhi loop se karna asan honga na

    • @HuzefahJaved
      @HuzefahJaved Месяц назад

      @@tsdonalds1668 ye loop hi to he array k liye
      !!!

  • @owaisnadeem2751
    @owaisnadeem2751 8 месяцев назад +12

    There is another way
    // There is a question in which you have to find out the greatest string by creating a function find_Largest_String. If there are mulitple largest strings , it will encounter the very first one.
    let str = "My name is Owais Nadeem ";
    function find_Largest_String(a) {
    if (a.trim() === 0) {
    let empty = "The string is empty !!!";
    return empty;
    } else {
    let words = a.split(" ");
    largest_str = words[0];
    for (let i = 0; i < words.length; i++) {
    if (words[i].length > largest_str.length) {
    largest_str = words[i];
    }
    }
    return largest_str;
    }
    }
    let result = find_Largest_String(str);
    console.log(result);
    Respect & Love from Pakistan

    • @noobCoder7
      @noobCoder7 7 месяцев назад

      Bubble sort

    • @sanasajid2681
      @sanasajid2681 7 месяцев назад

      I have done with method

    • @ujjwalssharma8149
      @ujjwalssharma8149 3 месяца назад

      Even you can do it by reduce method

    • @HuzefahJaved
      @HuzefahJaved Месяц назад

      yes that good but array has its own loops like map .. for each ..for of..... these methods are easy as u don't need to write For loop...

  • @AdityaGrover-ly9jf
    @AdityaGrover-ly9jf 8 месяцев назад +1

    Like or share kardo sab log ... thapa sir bhot mehnat se video banate h ❤❤

  • @techmatscience6757
    @techmatscience6757 8 месяцев назад

    Amazing start 👍
    Here is one more short way for it, i did this same question in one of the match in condingame with Java
    const str = "ThapaTechnical is the best"
    var words = str.split(' ')
    var lengths = words.map((word)=>word.length)
    console.log(words[lengths.indexOf(Math.max(...lengths))]);
    //Words list -> // console.log(words);
    // Index of max length word -> console.log(lengths.indexOf(Math.max(...lengths)));
    // length of words -> console.log(...lengths);

  • @AncientEyeStories
    @AncientEyeStories 7 месяцев назад +1

    There is the oneline function to get the largest word from a sentence
    const getLargestWord = (str) => str.split(" ").reduce((ans, cur) => ans.length > cur.length ? ans : cur);

  • @abhishektripathy1925
    @abhishektripathy1925 22 дня назад

    Pure Logic Method:
    function stringComparison (str) {
    if(str.trim().length === 0){
    return false
    }
    const words = str.split(" ")
    let wordLength = 0;
    let index = 0
    for(i=0; i wordLength) {
    wordLength = words[i].length
    index = i
    }
    }
    return words[index]
    }

  • @vivekgaywala5537
    @vivekgaywala5537 8 месяцев назад

    Sir thank you somuch ..apne programming sikhna bahot easy bna Diya or ab ye 100 days wali series se bahot confidence milega..

  • @ksubramanyeshwara
    @ksubramanyeshwara 8 месяцев назад +1

    Most awaited series. Please cover 3 to 5 questions everyday

  • @priyakarn5191
    @priyakarn5191 8 месяцев назад

    Thankyou so much sir ye interview questions lane ke liye 😀✨ bahut kuch sikhne ko milta h Apka tutorial se

  • @aryan_UK-11
    @aryan_UK-11 7 месяцев назад +2

    function fingLongestword(str) {
    let arr = str.split(" ")
    let max = arr[0]
    for (let i = 0; i < arr.length; i++) {
    if (max.length < arr[i].length) {
    max = arr[i]
    }
    }
    return max
    }
    console.log(fingLongestword("my name is aryan negi i am from uttarakhand"));

  • @ashfaqkhichi3455
    @ashfaqkhichi3455 7 месяцев назад

    Thanks for starting this , mjhy es course ki bht zaroorat thi to build logic in programming

  • @aniketnagrale5300
    @aniketnagrale5300 8 месяцев назад

    there is no such series on the internet....this series will help me a lot❣

  • @junaidmuhammad6096
    @junaidmuhammad6096 6 месяцев назад

    Great Sir! I'll continue This playlist InshAllah

  • @najibullahnaziry2018
    @najibullahnaziry2018 8 месяцев назад

    best channel for learn coding thanks bro....

  • @anupamboral3918
    @anupamboral3918 8 месяцев назад +10

    Vote for DSA in javascript 🎉

  • @brijeshshukla5284
    @brijeshshukla5284 7 месяцев назад

    Thank u sir is tarah ki js ki video ki bahut need thi

  • @shreejipaliwal1215
    @shreejipaliwal1215 8 месяцев назад +1

    Thanks🙏

  • @Suresh.12345
    @Suresh.12345 8 месяцев назад +1

    Watching and learning from Spain 😊. Thanks Thapa Bro.

  • @AreebaHafeez-pn2ql
    @AreebaHafeez-pn2ql 5 месяцев назад

    Amazing teacher

  • @mohdjawadpolyvalent2314
    @mohdjawadpolyvalent2314 8 месяцев назад

    Yes sir rokiye ga mt sir 100 days se pehle logic tagda wala build kriye gaa

  • @payalverma4653
    @payalverma4653 8 месяцев назад

    Super excited for 100 days 😃

  • @mdishtiyaquekhanna5573
    @mdishtiyaquekhanna5573 8 месяцев назад

    Salute sir ji ❤

  • @MyCodingDiary
    @MyCodingDiary 8 месяцев назад

    Your energy and enthusiasm are contagious. Love it!

  • @ArminLaskar-dg7gb
    @ArminLaskar-dg7gb 6 месяцев назад

    Best Class Thanks A Lots 🎉

  • @rakeshkhattri4758
    @rakeshkhattri4758 8 месяцев назад

    Super Excited for this.

  • @ZenRahul24
    @ZenRahul24 8 месяцев назад

    Day01 Completed sucessfully🍀🍀

  • @sandeeprana331
    @sandeeprana331 8 месяцев назад

    bilkul bro start journey

  • @pavithrakumar8748
    @pavithrakumar8748 6 месяцев назад

    function LongestWord(inputString) {
    const list = inputString.split(" ");
    let longestString = "";
    for (str of list) {
    if (str.length > longestString.length) {
    longestString = str;
    }
    }
    if (longestString == "") {
    return false;
    }
    return longestString;
    }

  • @Asim_Ali4857
    @Asim_Ali4857 8 месяцев назад

    Day-1 Question was amazing meet you soon on Day-2

  • @rakeshroy1633
    @rakeshroy1633 8 месяцев назад

    Really very excited

  • @swatikale804
    @swatikale804 3 месяца назад

    awsome series thank you sir

  • @WorldWab0001
    @WorldWab0001 8 месяцев назад

    Excellent thanks sir ❤❤❤❤
    I am super excite for js course ❤❤❤

  • @owaisnadeem2751
    @owaisnadeem2751 8 месяцев назад

    Day - 01 Present Sir

  • @vandanraval_5018
    @vandanraval_5018 8 месяцев назад

    Thanks a lot and waiting for React Series

  • @syedabdullah7100
    @syedabdullah7100 8 месяцев назад

    Best js series very indepth knowledge

  • @afrozalam6591
    @afrozalam6591 7 месяцев назад

    Wow! awesome challenege, thanks to start...

  • @AllFormInfo_News_
    @AllFormInfo_News_ 8 месяцев назад

    i am very exciting sir, your really great sir🔎🔎

  • @rizwanahmadkhan8098
    @rizwanahmadkhan8098 4 месяца назад

    function findLongestWord(str){
    let strArr = str.split(" ")
    let longestWord = '';
    for(let char of strArr){
    if(longestWord.length < char.length){
    longestWord = char
    }
    }
    return longestWord
    }
    let str = "JavaScript is a powerful and flexible language that opens up a lot of possibilities in web development"
    console.log(findLongestWord(str))

  • @bivusingha2079
    @bivusingha2079 5 месяцев назад

    As always I love your videos. It really helps me.
    👌👌👌

  • @ranahussnainali295
    @ranahussnainali295 8 месяцев назад +1

    Thanks good effort

  • @jayakurre2809
    @jayakurre2809 8 месяцев назад +1

    thank you sir🤩🤩🤩

  • @DIYkhizra
    @DIYkhizra 3 месяца назад

    If a string has multiple long words of same length then :
    const str = "The quick brown fox jumps over the lazy dog jumps";
    const longestnumber = (str) => {
    if (str.trim().length === 0)
    return false;
    let words = str.split(' ');
    words.sort((a, b) => b.length - a.length);
    let longestLength = words[0].length;
    // Filter words with the same length as the longest word
    let longestWords = words.filter(word => word.length === longestLength);
    return longestWords;
    }
    console.log(longestnumber(str));
    //Output:
    ['quick', 'brown', 'jumps', 'jumps']

  • @WaqasKhan-xy9nq
    @WaqasKhan-xy9nq 8 месяцев назад

    Absolutely amazing👍

  • @swagatachakraborty265
    @swagatachakraborty265 7 месяцев назад

    very awsome sir too good thank you so much sir for giving us such a imapactful content at free of cost. thank you so much and your technique and content is very different from others. thank you once again🙏🙏

  • @vishuphysics8564
    @vishuphysics8564 7 месяцев назад +1

    🙏🙏🙏🙏

  • @malitushar1418
    @malitushar1418 8 месяцев назад

    function str(arg) {
    let word = arg.split(" ")
    let store = ''
    for (let words of word) {
    if (words.length > store.length) {
    store = words
    }
    return store;
    }
    }

  • @afaqahmad8918
    @afaqahmad8918 8 месяцев назад

    Well done ✅
    You've start a series which will help us alot ❤

  • @nishamaurya7116
    @nishamaurya7116 8 месяцев назад

    Thank sir is series ko lane ke liye
    It is very helpful in js practice

  • @siya0409
    @siya0409 8 месяцев назад

    Most awaited series.. Day #1 attendee 👩‍💻 Do more likes for his remarkable efforts....

  • @OusmanMohammad
    @OusmanMohammad 8 месяцев назад

    Really thanks for the series bhai and I am super excited for the next 100days...#worldsbestJSseries

  • @pooja.yadav.
    @pooja.yadav. 8 месяцев назад

    Yes sir very excited 🎉

  • @SarveshKumar-bl9in
    @SarveshKumar-bl9in 8 месяцев назад

    thanks for this series .

  • @muhammadfarhan6355
    @muhammadfarhan6355 6 месяцев назад

    Bro I would say, k javascript k built in functions ko use na karo, and custom kaam karo, interview may aksar mana kartay hen builtin methods/functions use karnay ka.
    Like 1 of the interviewer asked k sort kar do array ko without sort method, or find any element without filter or find methods use custom code etc

  • @NeerajKumar-wk4qq
    @NeerajKumar-wk4qq 7 месяцев назад

    Wah sir great

  • @Ameenayasmin-b2q
    @Ameenayasmin-b2q 7 месяцев назад

    Hi bro. Each and every video you are making its very useful and interesting..keep doing more videos. It is very helpful to all bro.

  • @Devraj_Prasad
    @Devraj_Prasad 7 месяцев назад

    const findlongestWord = (string) => {
    if(string.trim().length === 0){
    return false;
    }
    let words = string.split(" ");
    words = words.sort((a,b) => a.length - b.length);
    let longestWord = words[words.length - 1];
    return longestWord;
    }

    console.log(findlongestWord("Hi I Am Devraj Prasad"));

  • @shortHot2510
    @shortHot2510 8 месяцев назад

    Just love it brother❤️

  • @BivekGC
    @BivekGC 8 месяцев назад

    very nice video . continue the series.

  • @riajikbal2938
    @riajikbal2938 8 месяцев назад

    great series sir keep it up

  • @codeaursleep
    @codeaursleep 8 месяцев назад

    First Answer:
    const handleLargestWorld = (e) => {
    str = e.split(" ");
    console.log(str, "str");
    return str.sort((a, b) => b.length - a.length)[0];
    };
    console.log(
    handleLargestWorld(
    "Hi My name is Ahsan IQbal. I am a FrontEndDeveloper"
    )
    );

  • @binodkumar-em7ub
    @binodkumar-em7ub 8 месяцев назад +3

    function longestWord(str){
    let splirStr=str.split(' ')
    let longestWord=splirStr[0];
    for(let i=0;ilongestWord.length){
    longestWord=splirStr[i]

    }
    }
    return longestWord;
    }

    • @abumursad
      @abumursad 8 месяцев назад

      Why is it always giving first number of array instead of longest number

    • @binodkumar-em7ub
      @binodkumar-em7ub 8 месяцев назад

      @@abumursad Only for assuming the largest number for the first element of the array

  • @6.squash.936
    @6.squash.936 8 месяцев назад

    Making your eCommerce website project right now 😊

  • @mahakalshivsambhu9145
    @mahakalshivsambhu9145 8 месяцев назад

    watching your video from australia

  • @manooj8502
    @manooj8502 20 дней назад

    lot of love thapa daju

  • @T25_baburao
    @T25_baburao 7 месяцев назад

    When we convert string into array . Then we can also use forEach for making this question

  • @coding24335
    @coding24335 7 месяцев назад

    Awesome ♥️♥️

  • @mursalinhossain4160
    @mursalinhossain4160 8 месяцев назад

    Love from Bangladesh Thapa Bro

  • @MarutiHanumanji
    @MarutiHanumanji 8 месяцев назад

    Awesome 🎉🎉🎉🎉

  • @BhagatBhutale..
    @BhagatBhutale.. 8 месяцев назад

    JavaScript Challenge 100/1 day is Completed 👍

  • @jitendramahapatra1239
    @jitendramahapatra1239 8 месяцев назад

    Thanks 🙏 sir

  • @learnStore7
    @learnStore7 8 месяцев назад

    Supper Tutorial ❤

  • @prasantakumarroutray2105
    @prasantakumarroutray2105 8 месяцев назад

    You always awaresome....

  • @kuldeepsinghrathore2327
    @kuldeepsinghrathore2327 7 месяцев назад

    sir I have use another approach to find longest word is it fine 🤗
    const findLongestWord = (str)=>{
    const arr = str.split(" ")
    let lenArr = []
    if(str.length === 0) console.log(false)
    else {
    for(i=0; i{
    return word.length === lengthOfWord
    })
    console.log(result)}
    }
    findLongestWord("Thapa Technical is the worlds best teaching channel")

  • @SatyendraSingh-wm5fz
    @SatyendraSingh-wm5fz 8 месяцев назад

    Super experience 🎉

  • @Piyush-xv1bb
    @Piyush-xv1bb 8 месяцев назад

    Love you brother ❤❤

  • @akshajagarwal8814
    @akshajagarwal8814 8 месяцев назад

    Thank you for your help. ......❤❤❤❤

  • @anujadi8366
    @anujadi8366 7 месяцев назад

    Thank you so much thappa sir you are the best :)

  • @umarrizwan2176
    @umarrizwan2176 8 месяцев назад

    Nice bro awesome for great video ❤❤❤❤

  • @Mohitkumar70554
    @Mohitkumar70554 8 месяцев назад +1

    Sir Reactjs pr update playlist bano plz sir .🙏

  • @s29gamerz49
    @s29gamerz49 8 месяцев назад

    Another Way to solve :-> using for loop
    function longestWord(words) {
    var splitedWord = words.split(" ");
    console.log(splitedWord)
    let firstin = splitedWord[0];
    for (let i = 0; i < splitedWord.length; i++) {
    if (words == "") console.log("false");
    else if (splitedWord[i].length > firstin.length) {
    console.log(splitedWord[i]);
    }
    }
    }
    longestWord("return the first one encountered.");

    • @abumursad
      @abumursad 8 месяцев назад

      Why is it always giving first number of array instead of longest number

  • @survivalkingadarsh9788
    @survivalkingadarsh9788 8 месяцев назад

    No words❤

  • @gamerz962
    @gamerz962 8 месяцев назад

    Bhai apki already JS pe bht video hai, New b sekhyen like Nextjs and prisma etc, frame work k sath sekhayen JS ko.
    Baki i know ye series b apka best hone ja raha h❤😅

  • @talewhisperer1-m7j
    @talewhisperer1-m7j 7 месяцев назад

    Please write the question in the description. So that, we can copy in our file and start to solve it.

  • @DesignEnCode
    @DesignEnCode 8 месяцев назад

    Awesome👏❤

  • @epicclash20
    @epicclash20 8 месяцев назад

    Nice brother .

  • @AJ-krishna
    @AJ-krishna 8 месяцев назад

    next series React ❤❤ updated version 👌👌

  • @Doordrop0
    @Doordrop0 8 месяцев назад

    Nice sir

  • @Doraemon-Fun-Time9530
    @Doraemon-Fun-Time9530 7 месяцев назад

    my code
    const str = prompt("Enter the string ").trim();
    const findLargestWord = () => {
    let words = str.split(" ");
    if (str.length === 0) return false;
    let wordLength = 0;
    let word = "";
    for (let index = 0; index < words.length; index++) {
    if (words[index].length > wordLength) {
    wordLength = words[index].length;
    word = words[index];
    }
    }
    return word;
    };
    findLargestWord(str);

  • @HimanshuOli-y9z
    @HimanshuOli-y9z 8 месяцев назад

    // Method 1 {Time Complexity - O(n)}. Easy to understand and implement
    function findLongestWord(str) {
    str = str.trim();
    let words_arr = str.split(' ')
    let longestWord = words_arr[0];
    for (i in words_arr) {
    if (longestWord.length {
    let words = str.split(' ')
    words.sort((a,b) => b.length-a.length)
    return words[0]
    }
    let str = "My name is Himanshu Oli"
    console.log(findLongestWord(str))

  • @muhammadhaseeb220
    @muhammadhaseeb220 7 месяцев назад

    Complete react course with projects

  • @crwvlogs9273
    @crwvlogs9273 8 месяцев назад

    Great

  • @EchoByte1
    @EchoByte1 8 месяцев назад

    100 DAYS CHALENGE OF JAVASCRIPT ❤❤❤❤❤❤❤❤❤❤

  • @rajkumar-rz1fr
    @rajkumar-rz1fr 8 месяцев назад

    me bhi js ke questions bna rha hu aapki suggestion man kr fir chote projects banane ka plan hai

  • @sadafakhtar7711
    @sadafakhtar7711 8 месяцев назад

    Bhai apse reauest hai react js and express js complete one video le ayye ....aek video bana deejye roadmap kiske baad kiya seekhen

  • @siddharthgupta2
    @siddharthgupta2 8 месяцев назад

    Good going, Btw which theme you are using.....?

  • @IshanSingh360
    @IshanSingh360 8 месяцев назад

    Don't Stop this

  • @ghgltggamer
    @ghgltggamer 7 месяцев назад +1

    Bhaiya aa vaise for loop bhi use kar sakte ho array manupulation ke liya 😂😂😂