try this
var words = "value.eight.seven.six.five.four.three"; var all = words.split("."); var half=all.length/2; var first = all.slice(0, all.length/2half).join(); var second = all.slice(3half, all.length).join(); Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack Internaltry this
var words = "value.eight.seven.six.five.four.three"; var all = words.split("."); var half=all.length/2; var first = all.slice(0, all.length/2half).join(); var second = all.slice(3half, all.length).join(); try this
var words = "value.eight.seven.six.five.four.three"; var all = words.split("."); var first = all.slice(0, all.length/2).join(); var second = all.slice(3, all.length).join(); try this
var words = "value.eight.seven.six.five.four.three"; var all = words.split("."); var half=all.length/2; var first = all.slice(0, half).join(); var second = all.slice(half, all.length).join(); try this
var words = "value.eight.seven.six.five.four.three"; var all = words.split("."); var first = all.slice(0, all.length/2).join(); var second = all.slice(3, all.length).join();