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.

  1. Use the .join() method.
  2. Return them joined into a single string, separated exactly by a single space character.

01EXAMPLE 1

Inputwords = ["Hello", "World"]
Output"Hello World"

Constraints

  • Use the .join() method.
CoreStringsArrays
JavaScript
Loading...
3 Hidden

Input Arguments

words["Hello","World"]

Expected Output

Hello World

Click RUN to test your solution