The Linker
Easy+15 XP
Mission Briefing
The fragmented runes have been decoded into separate words, but we need the complete incantation string to unlock the seal!
The Concept: Data Transformation
The .join(separator) method creates and returns a new string by concatenating all elements in an array, separated by a specified separator string.
Example: ["Hi", "Mom"].join("-"); // Returns "Hi-Mom"
The Objective
Your function receives an array of string words.
- Use the
.join()method. - Return them joined into a single string, separated exactly by a single space character.
01EXAMPLE 1
Input
words = ["Hello", "World"]Output
"Hello World"Constraints
- Use the .join() method.
CoreStringsArrays
JavaScriptSystem handles I/O — write your function only
Loading...
3 Hidden
Input Arguments
words["Hello","World"]
Expected Output
Hello World
Click RUN to test your solution