slice vs substring method | String Object In JavaScript

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

КОМЕНТАРІ • 38

  • @CodeExplained
    @CodeExplained  2 місяці тому +1

    🚨 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! 🌟

  • @shweta8932
    @shweta8932 8 місяців тому +4

    You explained in the way no one did before u.... thnk u..
    😊

  • @shumonuddin6806
    @shumonuddin6806 2 роки тому +7

    wow wow wow... it's so easy to understand the way you explain... thank you so much

  • @Surya_Kiran_K
    @Surya_Kiran_K Рік тому +3

    This is how an explanation should be ❤👍

  • @NYC_CuriousG
    @NYC_CuriousG Рік тому +6

    Wow!! I'm a visual learner and this really helped me. Thanks for taking the time and effort to make this. Well thought out. If you do something like this again it might help a beginner to understand some use cases. Subscribed!

    • @CodeExplained
      @CodeExplained  2 місяці тому

      Happy to hear that I helped, thanks and welcome!

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

    thanks man i was reading mdn docs for this but i got better understanding here.

  • @indranathghosh5327
    @indranathghosh5327 Рік тому +3

    perfect to to the point . nice video

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

    Brilliant video. I was reading the differences on w3 Schools and just wasn't getting it. This way of visualising it and pointing out the differences really made it easy to learn. Thank you!

  • @ibex33
    @ibex33 11 місяців тому +1

    excellent explanation, thanks brother.

  • @jell._.y
    @jell._.y 2 місяці тому

    thank you!!!! very clear and the graphic is very helpful!!

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

    Beautifully explained. Thank you so much.

  • @codexakshay2348
    @codexakshay2348 7 місяців тому

    Best Explanation. Thank you.

  • @Yan-oe2mw
    @Yan-oe2mw Рік тому

    best illustration i have ever seen

  • @vinaypatil8009
    @vinaypatil8009 2 роки тому +3

    Make whole javascript series
    Teaching with animation is really look awesome

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

    you are the best😩 i love u

  • @cailarchitectatopks
    @cailarchitectatopks 9 місяців тому

    Crystal clear.

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

    Very well explained!!!!! new sub ^^ I didn't know about that negative line of numbers, do you know how it is called?

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

    Negative index for slice doesn't work that way

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

    ❤ It's awesome...
    Can you share which application you used for create this animation?.

  • @shakil-the-coding-monster
    @shakil-the-coding-monster Рік тому

    Excellent explanation

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

    All negative numbers in substring() are treated as 0. It is interesting that this makes substring(-8, -4) functionally equivalent to substring(0, 0) in that they both return an empty string. The empty string is everywhere and is a subset of every string!!
    For substring(), if start is greater than end, arguments are swapped: (4, 1) = (1, 4).
    So, for positive numbers, substring() will work in BOTH directions ( LTR and RTL ).
    For both positive and negative numbers, slice() WILL NOT work in direction RTL, even if characters exist in that space, i.e. it returns the empty string.

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

    excellent explanation

  • @devamrh
    @devamrh 10 місяців тому

    Which software do you use ?

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

    Thank you 🙏🏼

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

    best video.

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

    Very good djobs

  • @Zer0Cr4ckxd
    @Zer0Cr4ckxd 9 місяців тому

    ty

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

    ❤❤

  • @luckybeast4757
    @luckybeast4757 10 місяців тому

    Super

  • @shikharana1587
    @shikharana1587 9 місяців тому

    this is not correct information. in slice indexEnd value is not included in the result. please verify the result and update the video accordingly. i request not to provide wrong information. though i like you way of presentation.

    • @CodeExplained
      @CodeExplained  9 місяців тому

      You made me watch my own video.
      And it's your turn to do so.
      Please re-watch the video, cause I don't see where I said that indexEnd is included and not excluded.