Create a simple line editor
JavaScript (ES6), 15 14 bytes
I don't understand why this is getting so many upvotes!
s=&gt;prompt(s,s)

Saved a byte thanks to Adám's suggestion that I display the original input in the prompt.

Try It


f=
s=&gt;prompt(s,s)
console.log(f("Edit this ..."))