split Method | String Object In JavaScript

Publicado em: 01 Agosto 2022
no canal de: Code Explained
22,184
456

🎁 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 : https://github.com/CodeExplainedRepo

💲 Suppport the Channel
Paypal : https://paypal.me/CodeExplained
Buy Me a Coffee: https://www.buymeacoffee.com/CodeExpl...


Nesta página do site você pode assistir ao vídeo on-line split Method | String Object In JavaScript duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Code Explained 01 Agosto 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 22,184 vezes e gostou 456 espectadores. Boa visualização!