DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
slice string javascript if has @
let email = 'john@example.com' let localPart = email.slice(0,email.indexOf('@'));
Source by www.javascripttutorial.net #
PREVIOUS
NEXT
Tagged:
#slice
#string
#javascript
ADD COMMENT
Topic
COMMENT
Name
2+9 =
Submit