js slice string at word
var str= "12344A56789";
var splitted = str.split('4A'); //this will output ["1234", "56789"]
var first = splitted[0]; //"1234"
var second = splitted[1]; //"56789"
console.log('First is: ' + first + ', and second is: ' + second);
Also in JavaScript:
- javascript redirect page
- NullInjectorError: R3InjectorError(DashboardModule)[DatabaseService -> DatabaseService -> HttpClient
- react useLocation()
- packages.json from file
- How to validate the field in mvc before ajax call
- react tooltip on disabled button
- jason rpc reactjs
- chrome extension get current tab from popup
- website login and registartion source code jsp java
- how to use hooks react
- sass variables across files
- javascript find link by href
- get count of class which is visible element
- program to parenthesize an expression
- encodeuricomponent js
- javascript find a prime number
- what is eval in js
- implement subscript operator js
- find all subsets of an array javascript
- archiver compressed file in nodejs
- react style ternary operator
- express middleware pass parameter
- math.min
- prevent default on enter press