What string transformation is being performed in this code?
const sentence = 'JavaScript is amazing';
const words = sentence.split(' ');
const modified = words.join('-');
This code demonstrates string-to-array-to-string transformation: 1) split() converts string to array at space boundaries, 2) join() recombines array elements with hyphens, 3) Creates kebab-case format from space-separated words, 4) Common pattern in URL slug generation, 5) Maintains word order while changing delimiter, 6) Returns new string without modifying original, 7) Useful for creating URL-friendly strings, 8) Essential pattern for string format conversion.