Help....can anyone help us figure out why a \n is not working

We cannot get our /n to work on line 79. I would be greatful for any help you could provide.

Thank you

The return line needs to be in quotes and use the \ (above the enter key) + n. Do not use the / that is the same as the ? key.

hi

hi2

1 Like

I checked and it looks like we have the correct . If you see my Food variable in line 79 maybe you can see what we are doing wrong.

Thanks

Here is the link to remix our project

The link you provided isn’t linking to the project.

https://studio.code.org/projects/applab/jYv2WwlxTzkkEcGnanldnRYOF9elHD0ZeddDtxZlehA/view

Now the \n is on line 84 (Ithink)

You have the wrong component to display text. You need a text area box.

textArea

Working version:

Thank you very much.! I would have never guessed it would have something to do with the element in design mode. Just today I had them remove the text area and make it a label with a background.

1 Like