var string = '1:1'; var before = string.split(':')[0]; var after = string.split(':')[1]; console.log(before, after, 'before-after') // 1 1
var string = '1:1'; var before = string.split(':')[0]; var after = string.split(':')[1]; console.log(before, after, 'before-after') // 1 1