Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const myText = "Javascript is a programming language";
- const myArray = myText.split(' ');
- //iterating through array
- myArray.forEach(function(element){
- console.log(element);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement