get a part of string js code example
Example: get part of string javascript
var str="123 - aaaaa"
var num = str.slice(0,3) //num="123"
var name= str.slice(6) //name="aaaaa"
var str="123 - aaaaa"
var num = str.slice(0,3) //num="123"
var name= str.slice(6) //name="aaaaa"