Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

first x characters of string javascript

let string = "abcdefghi"
console.log(string.slice(0, 3))
// abc
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #characters #string #javascript
ADD COMMENT
Topic
Name
3+6 =