split a message
const message = 'This is a test'
var args = message.split(' ');
console.log(args[0]) // Responds "This"
console.log(args[1]) // Responds "is"
console.log(args[2]) // Responds "a"
console.log(args[3]) // Responds "test"
Also in JavaScript:
- how to set JSON data bootstrap treeview with java
- javascript is int in array
- coreui react change background color
- js append to array
- ternary operator in angular
- react redirect after login
- class extends
- deutsches ajax framework
- string date to date in javascript
- array javascript
- javascript syntax for check null or undefined or empty
- react cloud foundry nginx 404
- add jquery cdn
- javascript onsubmit change input value
- js how to hide an image
- uncaught TypeError: $.jajax is not a function
- angular.min.js version
- javascript while loop
- how to create react app using yarn
- javascript trim spaces
- disable editing ace code edior
- is json valid with single quotes
- javascript code to loop through array
- how do i listen to a keypress in javascript