DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript
let str = "foo_bar"; console.log(str.replace(/_bar$/, "")); Run code snippet
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#javascript
ADD COMMENT
Topic
COMMENT
Name
6+1 =
Submit