var word = 'dumbways'
word.split()
so how to split a word to dumb and ways
I have tried by
var word= "dumbways";
var splitted = word.split('ways'); //this will output ["1234", "56789"]
var first = splitted[0];
var second = splitted[1];
console.log('First is: ' + first + ', and second is: ' + second);
but it doesn't work, it's only log 'dumb'
thank you