← Back to challenges

Return Something to Me!

JavaScriptMediumlanguage_fundamentalsstrings

Instructions

Write a function that returns the string "something" joined with a space " " and the given argument a.

Examples

giveMeSomething("is better than nothing") ➞ "something is better than nothing"

giveMeSomething("Bob Jane") ➞ "something Bob Jane"

giveMeSomething("something") ➞ "something something"

Notes

Assume an input is given.

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Correct the Mistakes