Région de recherche :

Date :

https://www.w3schools.com › jsref › jsref_split.asp

JavaScript String split() Method - W3Schools

The split() method splits a string into an array of substrings. The split() method returns the new array. The split() method does not change the original string. If (" ") is used as separator, the string is split between words.

https://stackoverflow.com › questions › 7979727

javascript - Split string into array - Stack Overflow

When specifying an empty string as the separator, the split() method will return an array with one element per character. entry = prompt("Enter your name") entryArray = entry.split("");

https://developer.mozilla.org › ... › Web › JavaScript › Reference › Global_Objects › String › split

String.prototype.split() - JavaScript | MDN - MDN Web Docs

The split() method of String values takes a pattern and divides this string into an ordered list of substrings by searching for the pattern, puts these substrings into an array, and returns the array.

https://developer.mozilla.org › fr › docs › Web › JavaScript › Reference › Global_Objects › String › split

String.prototype.split() - JavaScript | MDN - MDN Web Docs

Un tableau (Array) qui contient les fragments de la chaîne de caractères, découpée en fonction du séparateur indiqué. Description. Lorsqu'il est trouvé, separator est supprimé de la chaîne de caractère, et les sous-chaînes sont retournées dans un tableau.

https://www.freecodecamp.org › news › javascript-split-how-to-split-a-string-into-an-array...

JavaScript Split – How to Split a String into an Array in JS

The split() method splits (divides) a string into two or more substrings depending on a splitter (or divider). The splitter can be a single character, another string, or a regular expression. After splitting the string into multiple substrings, the split() method puts them in an array and returns it.

JavaScript Split – How to Split a String into an Array in JS

https://www.freecodecamp.org › news › javascript-split-a-string-string-to-array-js-method

JavaScript split () a String – String to Array JS Method

The .split('') portion splits up the string into an array of characters. The .reverse() portion reverses the array of characters in place. The .join('') portion joins the characters together from the array and returns a new string.

JavaScript split () a String – String to Array JS Method

https://www.freecodecamp.org › news › javascript-split-string-example

JavaScript Split String Example – How to Split a String into an Array in JS

A string is a data structure that represents a sequence of characters, and an array is a data structure that contains multiple values. And did you know – a string can be broken apart into an array of multiple strings using the split method. Let's see how that works with some examples.

https://www.javascripttutorial.net › javascript-string-split

JavaScript String split(): Splitting a String into Substrings

The String.prototype.split() divides a string into an array of substrings: split([separator, [,limit]]); Code language: JavaScript (javascript) The split() accepts two optional parameters: separator and limit.

https://devdoc.net › ... › en-US › docs › JavaScript › Reference › Global_Objects › String › split.html

String.prototype.split() - JavaScript | MDN - devdoc.net

The split() method splits a String object into an array of strings by separating the string into substrings, using a specified separator string to determine where to make each split.

https://stackabuse.com › how-to-convert-a-string-to-an-array-in-javascript

How to Convert a String to an Array in JavaScript - Stack Abuse

In this guide, learn how to convert a String to an Array in JavaScript, with the split (), Object.assign (), Array.from () methods and spread [...] operator, as well as when to use which.