Skip to content

Commit 09327da

Browse files
committed
New: string to array.
1 parent 1a64888 commit 09327da

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

basic/string.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ function sanitize(input, list) {
4545

4646
let san = sanitize();
4747
console.log(san);
48+
49+
let text2 = "How are you doing today?";
50+
const myArray = text2.split(" ");
51+
let word = myArray[1];
52+
console.log(word);

0 commit comments

Comments
 (0)