Useful string methods in JavaScript 〰️【4 minutes】

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

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

  • @BroCodez
    @BroCodez  2 года назад +10

    // useful string properties & methods
    let userName = "Bro Code";
    let phoneNumber = "123-456-7890";
    //console.log(userName.length);
    //console.log(userName.charAt(0));
    //console.log(userName.indexOf("o"));
    //console.log(userName.lastIndexOf("o"));
    //userName = userName.trim();
    //userName = userName.toUpperCase();
    //userName = userName.toLowerCase();
    phoneNumber = phoneNumber.replaceAll("-", "");
    console.log(phoneNumber);

    • @joyceasante8292
      @joyceasante8292 Год назад

      Practicing...
      //let userName = "Framboaya";
      let phoneNumber = "546-698-021";
      //console.log(userName.length);
      //console.log(userName.charAt(2));
      //console.log(userName.indexOf("a"));
      //console.log(userName.lastIndexOf("a"));
      //userName = userName.trim();
      //userName = userName.toUpperCase();
      //userName= userName.toLowerCase();
      phoneNumber = phoneNumber.replaceAll("-","");
      //console.log(userName);
      console.log(phoneNumber);

  • @Cats_Dogs.
    @Cats_Dogs. 2 года назад +2

    I'm from Kazakhstan. Thank you so much for the effort and the opportunity to learn JS!

  • @nafisatabassum-28
    @nafisatabassum-28 2 месяца назад

    From Bangladesh- Thanks a lot for these basic JS course. Easily explained. One of the best.

  • @danielmusner3063
    @danielmusner3063 2 года назад +5

    Hey man, i'd like to tell you that im watching all your playlist bout JS, and that thanks to your videos now i get how the relation HTML-JS works! Thanks man and keep it up!!!

  • @oxenburguer7279
    @oxenburguer7279 Год назад +3

    I'm learning JS, html, Css and PHP through your videos and it is quite impossible to find out any other course better than yours! The best english pronunciation so that even foreigners like me can understand. That should be a way of showing you all our gratitude for this amazing job you have been doing, Bro! Where are you from?

  • @aleksandrguz6508
    @aleksandrguz6508 2 года назад +2

    thx you Bro. I'm from Russia and here we don't have any free useful programming courses. I understand your lesson without using any translator or smth like that

    • @aleksandrguz6508
      @aleksandrguz6508 2 года назад +1

      @Mr Rough Hey. Ouu.... It's tough here. Instgramm, facebook, twitter are down. Netflix also doesn't work at Russia territory now. I'm scared of potential opportunity of RUclips and Twitch blocking. But i try just keep focus on JavaScript.

  • @hoatranminh5216
    @hoatranminh5216 Год назад

    Thank you, Bro! Great teacher as always

  • @lucabinder9829
    @lucabinder9829 2 года назад

    That was awesome Broski!

  • @FatsoMC
    @FatsoMC 2 года назад

    bro... this is dope. thanks for the effort!

  • @NURSULTONSHODIYOROV
    @NURSULTONSHODIYOROV Год назад

    oh bro! thanks all , you are great techer in the world🙂🙂🙂🙂🙂🙂

  • @TheEvertonDias
    @TheEvertonDias Год назад

    Thanks, Bro!

  • @elvispontes4165
    @elvispontes4165 Год назад

    great teacher!!!

  • @roycechriston5389
    @roycechriston5389 2 года назад

    nice and clean

  • @serhan8638
    @serhan8638 Год назад

    Good tips bro

  • @sweethomes674
    @sweethomes674 2 года назад

    Excellent 😊

  • @kartikchauhan2778
    @kartikchauhan2778 2 года назад

    Great video

  • @MohyDev
    @MohyDev 2 года назад +1

    Wubba Lubba Dub-Dub
    For the algorithm!

  • @alexdin1565
    @alexdin1565 2 года назад

    yes it's very useful thakns

  • @малосольные-окурки
    @малосольные-окурки 8 месяцев назад

    perfect!

  • @MrLoser-ks2xn
    @MrLoser-ks2xn Год назад

    Thanks!

  • @Olimpio_Eduardo
    @Olimpio_Eduardo Год назад

    Hi, I've been following your courses and I actually like the way you explain the subject, I'm following the javascript course, and I would like to ask (if it doesn't bother me) to be able to take a React js course??

  • @virale2405
    @virale2405 Год назад

    thanks

  • @lefterisgaming1523
    @lefterisgaming1523 День назад

    Nice only 79 left

  • @ΑναστάσηςΤσαμπούκος

    I want to make the portions of a textview text which are the same with the items in a string list coloured different than the other text is there any way?