Multiline input as JavaScript variable

I am trying to get content of the multi-line input as a JavaScript variable. The only input JavaScript recognizes is a single number. Any character entry returns an error. What am I doing wrong?

In JavaScript, every string (text) must be declared between quotes. So in order to your code works, you should do like this:

var input = “MultilineInput A’s value”;

Thanks for your reply. Quotes would certainly work with single line text, not so much with multiline. Didi not finish testing all of use cases, but a solution seems to be the use of
image