Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get first 3 characters of string

const str = 'Walk the dog';

const first3 = str.slice(0, 3);
Source by bobbyhadz.com #
 
PREVIOUS NEXT
Tagged: #javascript #characters #string
ADD COMMENT
Topic
Name
3+2 =