DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript only allow show first few characters from a string
var string = 'Hey, I am good'; string.substring(0,3); // show first 3 characters //result "Hey"
PREVIOUS
NEXT
Tagged:
#javascript
#show
#characters
#string
ADD COMMENT
Topic
COMMENT
Name
2+4 =
Submit