Introduction + charAt method | String Object In JavaScript

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

КОМЕНТАРІ • 11

  • @CodeExplained
    @CodeExplained  Місяць тому

    🚨 Big Announcement! 🚨
    Hey everyone! I've made a big decision for this channel-I've turned off ads on all my videos! That's right, you can now enjoy all my content ad-free! This means I'm earning $0 from ad revenue, but I believe this is the right move to make your viewing experience better.
    If you find my content valuable and want to support my work, there are several ways you can help:
    Like & Share: Simply liking the video and sharing it with friends helps a lot!
    Subscribe & Hit the Bell: Stay updated and never miss a new video.
    UA-cam Thanks: Use the "Thanks" button below to send a one-time donation.
    Join the Channel Community: Get exclusive perks and behind-the-scenes content.
    Buy Me a Coffee: buymeacoffee.com/CodeExplained
    PayPal Donation: www.paypal.com/paypalme/CodeExplained
    Every little bit counts and goes directly to creating more high-quality content for you all. Thank you so much for your continued support!
    Let’s keep growing and learning together! 🌟

  • @ferdause714
    @ferdause714 6 місяців тому +1

    You should make complete Javascript tutorial. Trust me I have never seen such effort from any tutor.

  • @MohanadSaid-u8x
    @MohanadSaid-u8x 7 місяців тому

    You should've made complete summaries for all js concepts methods with a summary concepts intro video
    I've watched the all 33 array methods and i can tell you from a learner stand point this is the highest quality you can present concepts even though most people might not realize it even if they see your vid title

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

    CASE 1 - string primitive in a variable:
    I would add that when JS internally transforms a string primitive to a String object via “wrapping”, it does so only for the few milliseconds needed to access the method we specify. The string primitive has no methods of its own, but the String object wrapper does. After the method executes, the wrapper is then shed and we revert back to an immutable string primitive. The String object wrapper is then garbage collected. This “wrapping”, i.e. the String object creation / destruction / garbage collection cycle, repeats every time we apply another method to the string primitive.
    CASE2 - String object (via constructor function) in a variable
    The string primitive is passed as an argument (i.e. a variable) to the constructor function. The String object is created and it persists as an object. We can now access methods at will , i.e the “wrapping” creation / destruction / garbage collection processes are N/A after the constructor creates the String object. Internally, the immutable string primitive also persists.

  • @Demonrahul0
    @Demonrahul0 Місяць тому

    str[5] is empty space not "E". i"m right or not

  • @viniciusm.m.7822
    @viniciusm.m.7822 2 роки тому

    Thanks, man!
    Bro, can you help me with this question?
    If I got an array of strings that I do not want to make visible if a user selects, for example, a "product" that its "id" is inside that array. Is it possible to verify that and then return "false" or "true" in ternary condition? Can I use the "includes()" method?

    • @CodeExplained
      @CodeExplained  2 роки тому +1

      Sorry I didn't fully get what you want to achieve here.
      You have an array of products (each product is a string).
      When the user selects a product, you want to verify if that product is in the array. is that right?

    • @viniciusm.m.7822
      @viniciusm.m.7822 2 роки тому

      @@CodeExplained yes! Im sorry man, my engish is not that good, but im studing more now. I'm from Brazil

    • @CodeExplained
      @CodeExplained  2 роки тому +1

      array.includes("value") ? do this when true : do this when false

    • @viniciusm.m.7822
      @viniciusm.m.7822 2 роки тому

      @@CodeExplained thanks , man!