DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
get part of string javascript
var str="123 - aaaaa" var num = str.slice(0,3) //num="123" var name= str.slice(6) //name="aaaaa"
PREVIOUS
NEXT
Tagged:
#part
#string
#javascript
ADD COMMENT
Topic
COMMENT
Name
8+2 =
Submit