split Method | String Object In JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • 🎁 Join my channel to get access to perks:
    / @codeexplained
    🧡 Hello All JavaScript Lovers Outhere!
    Today you're going to learn about the String Object In JavaScript.
    This tutorial is a series of videos, in each video we will discuss a method (or more) of the String Object in JavaScript.
    In today's video, you're going to learn about split, another string method.
    Split is used to divide a string into an ordered list of substring based on a separator, and returns the substrings in array, it doesn't change the original string.
    Syntax:
    split(seperator)
    split(separator, limit)
    separator : The pattern describing where each split should occur. Can be a string or an object with a Symbol.split method - the typical example being a regular expression. If undefined, the original target string is returned wrapped in an array.
    limit : A non-negative integer specifying a limit on the number of substrings to be included in the array. If provided, splits the string at each occurrence of the specified separator, but stops when limit entries have been placed in the array. Any leftover text is not included in the array at all.
    • The array may contain fewer entries than limit if the end of the string is reached before the limit is reached.
    • If limit is 0, [ ] is returned.
    🌍 Social Media Links.
    ◾ Facebook : / code.explained.official
    ◾ Twitter : / code_explained
    ◾ Instagram : / code.explained.official
    ◾ GitHub : github.com/Cod...
    💲 Suppport the Channel
    Paypal : paypal.me/Code...
    Buy Me a Coffee: www.buymeacoff...

ความคิดเห็น • 20

  • @CodeExplained
    @CodeExplained  28 วันที่ผ่านมา

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

  • @NancyMiller-h5j
    @NancyMiller-h5j 17 ชั่วโมงที่ผ่านมา

    Gerhold Skyway

  • @satriolanglang912
    @satriolanglang912 หลายเดือนก่อน

    Thanks buddy. Super clear. Explanation and graphic is top notch.

    • @CodeExplained
      @CodeExplained  หลายเดือนก่อน

      Glad you liked it!

  • @Stormpaw
    @Stormpaw ปีที่แล้ว +3

    Thank you for the great explanation!

  • @codewithsehran
    @codewithsehran 5 หลายเดือนก่อน

    Change your microphone or fix it

  • @AnimalKin
    @AnimalKin ปีที่แล้ว +1

    And after doing whatever I need to do with the string how can I put the updated string together with the spaces ?

  • @SpaceHound
    @SpaceHound 2 ปีที่แล้ว +2

    Nice videos bruh these are really helpfull now that am preparing for an interview keep this thing up

    • @CodeExplained
      @CodeExplained  2 ปีที่แล้ว +1

      Glad I could help
      best of luck with your interview

  • @joeleearchitect
    @joeleearchitect 8 หลายเดือนก่อน +1

    Again. The graphical explanation is crystal clear.

  • @thelunatiK
    @thelunatiK หลายเดือนก่อน

    WOW Quick and easy explaination

    • @CodeExplained
      @CodeExplained  หลายเดือนก่อน +1

      Happy to hear that

  • @NahomAssefa
    @NahomAssefa ปีที่แล้ว +1

    Good explanation

  • @fridayokorie2964
    @fridayokorie2964 9 หลายเดือนก่อน

    Thanks for the video. I do have a question... What if you want to remove the punctuations. How do I go about it?

  • @codelyslearning
    @codelyslearning ปีที่แล้ว +1

    Nice explanation

  • @asadullahahmed
    @asadullahahmed ปีที่แล้ว

    Very well explained, to the point material.

  • @ratanchakma4029
    @ratanchakma4029 8 หลายเดือนก่อน

    amazing wow!

  • @fatemehshamsi1903
    @fatemehshamsi1903 ปีที่แล้ว

    this was really clear and helpful thank you.🤩

  • @razusheikh41
    @razusheikh41 ปีที่แล้ว

    Thank you

  • @moneyy-time
    @moneyy-time ปีที่แล้ว

    Cool.