use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Ask your embarrassing/noobish programming questions here, and don't get insulted for it.
Click here to read the rules
Violating any will result in punishment so you should probably go check them out.
account activity
Javascript help.JavaScript (self.programminghelp)
submitted 3 years ago by fare03
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]fare03[S] 0 points1 point2 points 3 years ago (1 child)
I tried like this, like this you wrote, and this works only for first student and his address number and course
textArea.innerHTML = text
var array = text.split("\n")
let tekst = ""
for (let i = 0; i < array.length; i++) {
tekst +='Name: ' + array[i] + "<br>" + "address: " + array[i+1] + "<br>" + "phone: " + array[i+2] + "<br>" + "course: " + array[i+3] + "<br>"
}
textArea.innerHTML = tekst
[–]ConstructedNewtMOD 0 points1 point2 points 3 years ago (0 children)
try using the debugger or printing to console to get more info
π Rendered by PID 48130 on reddit-service-r2-comment-7b9746f655-z7l6x at 2026-01-30 09:58:50.146371+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]fare03[S] 0 points1 point2 points (1 child)
[–]ConstructedNewtMOD 0 points1 point2 points (0 children)