Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

first x characters of string javascript

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