Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

split and join methods in Javascript

const s="awss, szjsjsjs, sjsjsj"
console.log(s.split(", ").join("_apoorv_"))
// prints awss_apoorv_szjsjsjs_apoorv_sjsjsj

// Note they are same as python ones in terms of functionality
// only syntax of join is a little diffrent than it's pythonic counterpart
 
PREVIOUS NEXT
Tagged: #split #join #methods #Javascript
ADD COMMENT
Topic
Name
2+8 =