Useful JavaScript STRING METHODS 🧵

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

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

  • @BroCodez
    @BroCodez  Год назад +18

    // string methods = allow you to manipulate and work with text (strings)
    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();
    //userName = userName.repeat(3);
    //let result = userName.startsWith(" ");
    //let result = userName.endsWith(" ");
    //let result = userName.includes(" ");
    //phoneNumber = phoneNumber.replaceAll("-", "");
    //phoneNumber = phoneNumber.padStart(15, "0");
    //phoneNumber = phoneNumber.padEnd(15, "0");
    console.log(phoneNumber);

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

      The video was postet 33 minutes ago but the comment is 1 month old 🤨

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

    This is my seal. I have watched the entire video, understood it, and I can explain it in my own words, thus I have gained knowledge. This is my seal.

  • @vallunacoder.wecodetogether
    @vallunacoder.wecodetogether Год назад +5

    dude I'm finally understanding java script!

  • @MrPvssy
    @MrPvssy Год назад +4

    Daddy Brocode teaches me lots

    • @chiggywiggy524
      @chiggywiggy524 10 месяцев назад +2

      Why you always write that same comment 😭

  • @pritampatil4163
    @pritampatil4163 Год назад +2

    superb video

  • @adhishpokharel8131
    @adhishpokharel8131 2 месяца назад +1

    Amazingg, learned lots. One suggestion tho. Did you know you could copy or cut a line of code without selecting anything? In VS code, if you ctrl + c/x any line you're on, It'll copy or cut the whole line. Takes some seconds off work and is just fun to do.

    • @ali_thegamer981
      @ali_thegamer981 2 месяца назад

      bro we can also use Shift+Alt+ArrowUp or ArrowDown key to copy our text

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

    Great video and It is so funny how to teach beginners the trim method and you say “hey white spaces removed from console “ where its not showing with or without trim 😂

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

    Key Insights
    🎯 The CharAt method is useful for retrieving individual characters from a string, using their corresponding index.
    🎯 The IndexOf method helps in finding the index of the first occurrence of a character in a string, which can be useful for further manipulations.
    🎯 The Length property provides a simple way to determine the length of a string, which is often needed for various operations.
    🎯 The Trim method is handy for removing leading and trailing whitespace from a string, ensuring clean input.
    🎯 The ToUpperCase and ToLowerCase methods enable easy conversion of a string to uppercase and lowercase, respectively.
    🎯 The Includes method helps in checking whether a string contains a specific substring, which is useful for conditional checks.
    🎯 String methods provide powerful tools for manipulating and working with text, enhancing the functionality of JavaScript applications.

  • @em_the_bee
    @em_the_bee Год назад +1

    Wow, Javascript has string methods!

  • @otabekmadaminov-z2i
    @otabekmadaminov-z2i Месяц назад

    Thabk you very much

  • @capslock3250
    @capslock3250 Год назад +1

    Thanks

  • @sumi09t
    @sumi09t 19 дней назад

    How can we use multiple string method for one string, like checking uppercase or lowercase with no spaces?

  • @MotoPortalTR
    @MotoPortalTR 2 месяца назад

    ❤❤❤❤❤turkey

  • @physchopath8742
    @physchopath8742 Год назад +1

    Can you make a tutorial on ruby aswell please

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

    thnx

  • @TheConnection-d4l
    @TheConnection-d4l 4 месяца назад

    What is the use of strings in building app

  • @durgamolleticcbpain1846
    @durgamolleticcbpain1846 11 месяцев назад

    node js and express js tutorils bro